-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non nullable boolean UI not showing checkmark #3612
Comments
I'm having the exact same issue for |
I fixed it on my side for now by adding I think the problem is in https://github.com/railsadminteam/rails_admin/blob/master/lib/rails_admin/config/fields/types/boolean.rb function |
any updates here? This is still broken for me! |
I've added a spec for this, but as you can see it's working. Are you sure that you're using the column type |
@mshibuya I realized our use case actually diverges just a bit. We are using Ideally, nullable and nonnullable would be something that has an override config. OR, |
Describe the bug
On the Create and Edit UIs the checkboxes for non nullable boolean fields does not seem to wokr, clicking on them does not show a checkmark.
Reproduction steps
Add a non nullable field to a model (in this case User)
Run
rails s
Open the browser to http://localhost:3000 and navigate to User page generated by rails admin.
Click on "Create +" button.
The admin field created in the migration, does not work as expected.
Expected behavior
I expect to see the checkmark appear if I click on it.
Additional context
rails
version: 7rails_admin
version: 3.1.2rails_admin
npm package version: not used, using sprocketsThe text was updated successfully, but these errors were encountered: