diff --git a/app/components/form_elements/fieldset_component.html.erb b/app/components/form_elements/fieldset_component.html.erb index 2bde8ce..143da70 100644 --- a/app/components/form_elements/fieldset_component.html.erb +++ b/app/components/form_elements/fieldset_component.html.erb @@ -1,4 +1,6 @@ -<%= tag.public_send(@tag, class: "mb-6 last:mb-0") do %> +<%= tag.public_send(@tag, class: "mb-6 last:mb-0", data: { + :'field-name' => @field_name + }) do %> <% if @positioning == :vertical %> <% elsif @positioning == :horizontal %>