diff --git a/admin/app/components/solidus_admin/base_component.rb b/admin/app/components/solidus_admin/base_component.rb index 1d62b60ccb9..9c6a3773ad6 100644 --- a/admin/app/components/solidus_admin/base_component.rb +++ b/admin/app/components/solidus_admin/base_component.rb @@ -4,6 +4,7 @@ module SolidusAdmin # BaseComponent is the base class for all components in Solidus Admin. class BaseComponent < ViewComponent::Base include SolidusAdmin::ContainerHelper + include Turbo::FramesHelper def icon_tag(name, **attrs) render component("ui/icon").new(name: name, **attrs) diff --git a/admin/app/components/solidus_admin/ui/table/component.html.erb b/admin/app/components/solidus_admin/ui/table/component.html.erb index a23775bfbe4..12cdaab36f5 100644 --- a/admin/app/components/solidus_admin/ui/table/component.html.erb +++ b/admin/app/components/solidus_admin/ui/table/component.html.erb @@ -15,6 +15,8 @@ url: @base_search_url, method: :get, class: 'flex-grow', + "data-#{stimulus_id}-target": "searchForm", + "data-turbo-frame": table_frame_id, ) do |form| %>