bootstrap-ruby / bootstrap_form

Official repository of the bootstrap_form gem, a Rails form builder that makes it super easy to create beautiful-looking forms using Bootstrap 5.
MIT License
1.64k stars 352 forks source link

Can't disable number_field #688

Closed itmart closed 10 months ago

itmart commented 1 year ago
f.number_field :earned_points, disabled: true

The field will not be disabled. Also tried this syntax:

f.number_field :earned_points, {}, disabled: true

But that gives me this error:

unknown keyword: :disabled
donv commented 10 months ago

Hi @itmart !

I added a test for this, and tried it in the demo application, and it seems to work fine. Are you using the latest release?

donv commented 10 months ago

Hi @itmart !

I just committed some changes in the builder. Could you test your app with the latest main branch?

donv commented 10 months ago

Hi @itmart !

I am closing this since I cannot reproduce the problem. I have added a section for disabled fields in the README. Please reopen if this still does not work for you.

https://github.com/bootstrap-ruby/bootstrap_form#disabled-fields