Merge branch 'acet-fix-tooltip-placement' into 'master'
Fix markdown preview tooltip cut off issue Closes #31748 See merge request !12367
This commit is contained in:
commit
46ccda86fb
1 changed files with 2 additions and 0 deletions
|
@ -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)}")
|
||||
|
|
Loading…
Reference in a new issue