Commit 46ccda86 authored by Jacob Schatz's avatar Jacob Schatz

Merge branch 'acet-fix-tooltip-placement' into 'master'

Fix markdown preview tooltip cut off issue

Closes #31748

See merge request !12367
parents 2cfc58f5 c2b2f791
......@@ -30,6 +30,8 @@ module Banzai
attributes = attributes.reject { |_, v| v.nil? }
attributes[:reference_type] ||= self.class.reference_type
attributes[:container] ||= 'body'
attributes[:placement] ||= 'bottom'
attributes.delete(:original) if context[:no_original_data]
attributes.map do |key, value|
%Q(data-#{key.to_s.dasherize}="#{escape_once(value)}")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment