diff --git a/lib/bootstrap_form/helpers/bootstrap.rb b/lib/bootstrap_form/helpers/bootstrap.rb index 3e5554632..9cb1a8f95 100644 --- a/lib/bootstrap_form/helpers/bootstrap.rb +++ b/lib/bootstrap_form/helpers/bootstrap.rb @@ -108,7 +108,7 @@ def static_class def attach_input(options, key) tags = [*options[key]].map do |item| - tag.div(input_group_content(item), class: "input-group-#{key}") + input_group_content(item) end ActiveSupport::SafeBuffer.new(tags.join) end diff --git a/test/bootstrap_form_group_test.rb b/test/bootstrap_form_group_test.rb index 4e1f23cf6..202e47da0 100644 --- a/test/bootstrap_form_group_test.rb +++ b/test/bootstrap_form_group_test.rb @@ -121,9 +121,7 @@ class BootstrapFormGroupTest < ActionView::TestCase