-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Form.Select - placeholder disappearing #1983
Comments
Hm, could you provide an example of the component with the props you want and the example rendered output you are expecting? I'm not quite sure I understand. |
Hi @levithomason I looking for something like this: https://jsfiddle.net/xu4fv5n0/2/ where I can cancel current value, and I can see again default value = Placeholder = null I don't know why when you choose one option, there is no way back... |
You should use controlled components, I've made a codepen that shows how to do this. SO is better place for questions. |
@layershifter thx, but your example doesn't work, when you select option, reset and try select again it doesn't work By the way, why I need separate button to clear select? it's bad UI, normal select can handle both cases If you preventing applying null value, you should provide some solution to easily reset select list with out some extra UI elements... |
Yep, I've forgot to add
How you want to reset value in another way? 🙃 Something should change the state. I've copied behaviour to icon on
|
I want select list where I can select null value
When I choose item from the list, placeholder disappearing
When I trying add extra item with empty value, it's not set as default.
How to make placeholder presist or set empty value as default?
Version
0.71.1
The text was updated successfully, but these errors were encountered: