Closed alex-benoit closed 2 years ago
I ran into this also. Not sure how to "fix it" as adding a customization in simple_form_bootstrap.rb
like b.use :select, class: 'form-select'
breaks all my instances of f.input ...
.
It works now.
@nashby as far as I can see, it works now on main, but not in 5.1.0 (latest) release.
I've just made a poor man test:
Gemfile
with gem 'simple_form', github: 'heartcombo/simple_form', branch: 'main'
bin/rails g simple_form:install --bootstrap
overwriting previous configI don't know if project's policy is to consider an issues to be resolved when the fix hits main
and don't know if you'd like to have a new issue filled or, finally, if I'm wrong :)
I spent too much time trying to fix this, hopefully gets put into a stable release soon.
thanks.
Environment
Current behavior
For bootstrap,
<%= f.input :channel, collection: @stuff %>
generates a select but just add the
form-control
classExpected behavior
The bootstrap
form-select
class should be added