React version: 0.0.0-f77c7b9d7
Steps To Reproduce
- listen to
onFocus
- read
event.type
Link to code example:
https://codesandbox.io/s/eventtype-in-reactnext-gt71n?file=/src/Demo.js
The current behavior
event.type === 'focusin' for focus and focusout for blur.
The expected behavior
event.type is unaffected by changes to the native event React listens to. At least onMouseEnter works that way where you (sometimes?) have a mouseover native event but event.type will still read mouseover.
React version: 0.0.0-f77c7b9d7
Steps To Reproduce
onFocusevent.typeLink to code example:
https://codesandbox.io/s/eventtype-in-reactnext-gt71n?file=/src/Demo.js
The current behavior
event.type === 'focusin'forfocusandfocusoutforblur.The expected behavior
event.typeis unaffected by changes to the native event React listens to. At leastonMouseEnterworks that way where you (sometimes?) have amouseovernative event but event.type will still readmouseover.