lib/playbook/kit_base.rb in playbook_ui-13.26.0.pre.alpha.PBNTR291Dropdownrailsv22840 vs lib/playbook/kit_base.rb in playbook_ui-13.26.0.pre.alpha.jasoncypretpatch12816
- old
+ new
@@ -79,10 +79,10 @@
def combined_html_options
default_html_options.merge(html_options.deep_merge(data_attributes))
end
# rubocop:disable Style/OptionalBooleanParameter
- def pb_content_tag(name, content_or_options_with_block = nil, options = {}, escape = true, &block)
+ def pb_content_tag(name = :div, content_or_options_with_block = {}, options = {}, escape = true, &block)
combined_options = options
.merge(combined_html_options)
.merge(default_options.merge(content_or_options_with_block))
content_tag(name, combined_options, options, escape, &block)
end