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.
The value property for a Select component has a type definition of
Array<string | number> | string | number
. However, if you look at the onChange event
event.target.value
has a type definition of just string. I'm trying to get a multiselect this working but I found this confusing and suspect it's a bug.
This is a v1.x issue
I have searched the
issues
of this repository and believe that this is not a duplicate.
Expected Behavior
I believe the value you get from the onChange event should match the type you can supply in the component props.
Current Behavior
I have not fully tested this but at least the type returned is only a string.