You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the past hours I've been trying to figure it out by looking at the source code and it seems that the property name it's equivalent to Select's value property. In other words, if you use name as your value prop you will be able to use your component in a controlled manner.
I've also highly recommend you to use the defaultOption property as it seems that if you just run the code above, when you first set a value, the setter doesn't properly register it but on a second try (and on subsequent tries) it properly does so.
I don't see a value prop for the select component. How to use it in a controlled mode with React state?
The text was updated successfully, but these errors were encountered: