TextField onKeyDown typescript event type is incorrect #12946
Labels
component: text field
This is the name of the generic UI component, not the React module!
typescript
Expected Behavior
A function with an event arg of type KeyboardEvent should for the onKeyDown event handler.
Current Behavior
This event handler expects KeyboardEvent which is counter intuitive.
Steps to Reproduce
Context
I'm using typescript in our environment and some TextField events like onChange will use HTMLInputElement type but the key down event expected HTMLDivElement. I would have expected all event handlers to use the same types.
Your Environment
The text was updated successfully, but these errors were encountered: