heartcombo / simple_form

Forms made easy for Rails! It's tied to a simple DSL, with no opinion on markup.
http://blog.plataformatec.com.br/tag/simple_form
MIT License
8.22k stars 1.32k forks source link

Missing form-select on bootstrap simple forms #1752

Closed alex-benoit closed 2 years ago

alex-benoit commented 2 years ago

Environment

Current behavior

For bootstrap,

<%= f.input :channel, collection: @stuff %>

generates a select but just add the form-control class

image

Expected behavior

The bootstrap form-select class should be added

image

gdonald commented 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 ....

nashby commented 2 years ago

It works now.

alessandro-fazzi commented 2 years ago

@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:

I 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 :)

f16z commented 2 years ago

I spent too much time trying to fix this, hopefully gets put into a stable release soon.

thanks.