diff --git a/app/components/DS/menu.rb b/app/components/DS/menu.rb index afc9049f..39ef35e9 100644 --- a/app/components/DS/menu.rb +++ b/app/components/DS/menu.rb @@ -4,7 +4,7 @@ class DS::Menu < DesignSystemComponent attr_reader :variant, :avatar_url, :initials, :placement, :offset, :icon_vertical, :no_padding, :testid renders_one :button, ->(**button_options, &block) do - options_with_target = button_options.merge(data: { menu_target: "button" }) + options_with_target = button_options.merge(data: { DS__menu_target: "button" }) if block content_tag(:button, **options_with_target, &block) diff --git a/app/views/transactions/searches/_form.html.erb b/app/views/transactions/searches/_form.html.erb index 1826c123..d11fe5cf 100644 --- a/app/views/transactions/searches/_form.html.erb +++ b/app/views/transactions/searches/_form.html.erb @@ -23,8 +23,7 @@ type: "button", text: "Filter", variant: "outline", - icon: "list-filter", - data: { menu_target: "button" } + icon: "list-filter" ) %> <% menu.with_custom_content do %> diff --git a/app/views/transactions/searches/_menu.html.erb b/app/views/transactions/searches/_menu.html.erb index 00ea5a46..0f2e9b09 100644 --- a/app/views/transactions/searches/_menu.html.erb +++ b/app/views/transactions/searches/_menu.html.erb @@ -37,7 +37,7 @@