Incorrect generic type definition is SelectChangeEvent #44783
Labels
component: select
This is the name of the generic UI component, not the React module!
status: waiting for author
Issue with insufficient information
typescript
When using the SelectChangeEvent with a specific value type:
const event: SelectChangeEvent<'option 1' | 'option 2'>
The event.target.value is still of type 'string' instead of the expected 'option 1' | 'option 2' type
material-ui/packages/mui-material/src/Select/SelectInput.d.ts
Line 13 in 3a8ceae
Search keywords:
The text was updated successfully, but these errors were encountered: