app/components/blacklight/system/dropdown_component.rb in blacklight-7.19.0 vs app/components/blacklight/system/dropdown_component.rb in blacklight-7.19.1
- old
+ new
@@ -2,10 +2,10 @@
module Blacklight
module System
class DropdownComponent < ViewComponent::Base
renders_one :button, (lambda do |classes:, label:|
- button_tag class: classes, aria: { expanded: false }, data: { toggle: 'dropdown' } do
+ button_tag class: classes, aria: { expanded: false }, data: { toggle: 'dropdown', 'bs-toggle': 'dropdown' } do
safe_join([label, content_tag(:span, '', class: 'caret')])
end
end)
renders_many :options, (lambda do |text:, url:, selected: false|
link_to(text, url, class: "dropdown-item #{'active' if selected}", role: 'menuitem', aria: { current: ('page' if selected) })