From e5324422d100dd7adb999dc88131c459e8fb2dd9 Mon Sep 17 00:00:00 2001 From: Pablo Brasero Date: Tue, 5 May 2026 12:17:13 +0100 Subject: [PATCH] Embrace bug, which will be future behaviour --- config/initializers/bootstrap_form.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/initializers/bootstrap_form.rb b/config/initializers/bootstrap_form.rb index a3bc2fa9b..37e08d102 100644 --- a/config/initializers/bootstrap_form.rb +++ b/config/initializers/bootstrap_form.rb @@ -4,3 +4,12 @@ Rails.application.reloader.to_prepare do BootstrapForm::FormBuilder.include BootstrapForm::Inputs::RichtextField end + +BootstrapForm.configure do |config| + # As of writing these lines, if this is not set it will behave differently + # in dev and prod. See https://github.com/bootstrap-ruby/bootstrap_form/pull/779 + # + # Additionally, a `true` setting will generate markup more conformant + # with WAI-ARIA, which hopefully will be more accessible. + config.group_around_collections = true +end -- 2.39.5