Should Select onChange emit value: T and not value: Key? #9708
ik-southpole started this conversation in General
Replies: 1 comment
-
| That would unfortunately be a breaking change to implement. The reason it is this way is so that the value of In addition, this is closer to the native api and closer to what is in the native input that backs this component. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
At the moment,
SelectPropsextends fromValueBase<ValueType<M>, ChangeValueType<M>>(see the second generic) which will result inValueBase#onChangenot usingTbutKey.This complicates usage of
Selectwith TypeScriptenumsbecause it requires type casting. Do you think we can consider usingT?Beta Was this translation helpful? Give feedback.
All reactions