diff --git a/app/helpers/translatable_form_helper.rb b/app/helpers/translatable_form_helper.rb index a8d9d1c78..00d143999 100644 --- a/app/helpers/translatable_form_helper.rb +++ b/app/helpers/translatable_form_helper.rb @@ -18,7 +18,7 @@ module TranslatableFormHelper style: display_translation?(locale), data: options.fetch(:data, {}).merge(locale: locale), label_options: { - class: "#{options[:class]} js-globalize-attribute".strip, + class: "#{options.dig(:label_options, :class)} js-globalize-attribute".strip, style: display_translation?(locale), data: (options.dig(:label_options, :data) || {}) .merge(locale: locale) }