You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
React version: 0.0.0-f77c7b9d7
Steps To Reproduce
onFocus
event.type
Link to code example:
https://codesandbox.io/s/eventtype-in-reactnext-gt71n?file=/src/Demo.js
The current behavior
event.type === 'focusin'
forfocus
andfocusout
forblur
.The expected behavior
event.type
is unaffected by changes to the native event React listens to. At leastonMouseEnter
works that way where you (sometimes?) have amouseover
native event but event.type will still readmouseover
.The text was updated successfully, but these errors were encountered: