-
-
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
Add an optional emptyValue to SelectInput #2780
Conversation
marmelab#2234 introduced a breaking change for our application. This change adds an optional custom empty value which is used when allowEmpty is set.
Thanks @edy for this PR! Is it ok to be merged for 2.7.1? |
sure |
would you merge this for 2.7.2? |
Hi @djhi @fzaninotto Could you review/validate this PR? Thanks! |
Sorry @edy, as it is a new prop, can you please target the |
Done. Why isn't it possible to merge into master? All tests pass and the change is backward compatible too. |
As I said in previous comment, this adds a new prop, hence a new feature. If we do merge it, it will be on the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems ok to me 👍
Just one thing: mind you document this new prop in the related doc?
https://github.com/marmelab/react-admin/blob/master/docs/Inputs.md#selectinput
also done |
Thanks! |
#2234 introduced a breaking change for our application. This change adds an optional custom value which is used when allowEmpty is set.
Previously
null
was set as an empty value, now you can set null again.