From ec0e505c12b65ad6cdb3d0ac188e813e428d3dcd Mon Sep 17 00:00:00 2001 From: Paul Bob Date: Thu, 30 Jan 2025 12:47:18 +0200 Subject: [PATCH] fix: pass wrapper data on heading field --- app/components/avo/fields/common/heading_component.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/avo/fields/common/heading_component.rb b/app/components/avo/fields/common/heading_component.rb index 74d5270db2..d85c34afd7 100644 --- a/app/components/avo/fields/common/heading_component.rb +++ b/app/components/avo/fields/common/heading_component.rb @@ -8,7 +8,7 @@ class Avo::Fields::Common::HeadingComponent < Avo::BaseComponent def after_initialize @view = @field.resource.view @classes = "flex items-start py-1 leading-tight bg-gray-100 text-gray-500 text-xs #{@field.get_html(:classes, view: @view, element: :wrapper)}" - @data = stimulus_data_attributes + @data = {**stimulus_data_attributes, **@field.get_html(:data, view: @view, element: :wrapper)} add_stimulus_attributes_for(@field.resource, @data) end end