Describe the bug
I expected the onChange property of TextInput to have the same type as JSX.InstrinsicElements['input'], but it appears that currentTarget on the event is more than HTMLInputElement:

To Reproduce
Steps to reproduce the behavior:
- Create a component with
TextInput whose value is a piece of string state - Try to set the string state with
onChange={e => setState(e.currentTarget.value)}
Expected behavior
No type error occurs.
Screenshots
See above with the current typing for onChange.
Describe the bug
I expected the
onChangeproperty ofTextInputto have the same type asJSX.InstrinsicElements['input'], but it appears thatcurrentTargeton the event is more thanHTMLInputElement:To Reproduce
Steps to reproduce the behavior:
TextInputwhosevalueis a piece of string stateonChange={e => setState(e.currentTarget.value)}Expected behavior
No type error occurs.
Screenshots
See above with the current typing for
onChange.