-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
Allow the option labels of NullableBooleanInput to be customized #5311
Conversation
Why don't you want to use the current solution (using translation messages)? |
@fzaninotto I have two different NullableBooleanInputs in my app and want to use different labels on them. |
@fzaninotto The default behavior of this control is to display 3 items, the item representing the null item has a blank label. That item, while present in the dropdown, is very difficult to select. This has created confusion in the past. For example, this PR #4365 is addressing a problem that doesn't exist (because the null option is always rendered by NullableBooleanInput). Maybe NullableBooleanInput should guard against the case of the translation message being an empty string. |
PR #5326 should solve the bug of the null option not being visible enough. |
ab31316
to
b7c6c4f
Compare
Oops, I just realized this was opened against the |
b7c6c4f
to
4f97ed5
Compare
The next release will be 3.9 and we already moved the related code to master so you're fine :) |
Perfect, thanks a lot! |
Hi, I would like to customize the labels of the options of the
NullableBooleanInput
control.