Skip to content

Commit

Permalink
fix: pass wrapper data on heading field
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob committed Jan 30, 2025
1 parent 1d97175 commit ec0e505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/avo/fields/common/heading_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ec0e505

Please sign in to comment.