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
React.MouseEvent#relatedTarget is undefined in firefox on windows (should be null)
React version: 16.12.0
Steps To Reproduce
create an onMouseOut event listener on a html element
move the mouse to the element
move the mouse outside the window (the mouse should not enter other html elements in the process)
Link to code example: https://codesandbox.io/s/strange-wiles-c4ku2
In the example, if you move the mouse from the blue box to the top, you see the types of event.relatedTarget and event.nativeEvent.relatedTarget, you see "undefined, object".
The current behavior
when event.nativeEvent.relatedTarget is null, event.relatedTarget is undefined.
The expected behavior
event.relatedTarget should be null
The text was updated successfully, but these errors were encountered:
looks like this is due to the fact that mozilla doesn't support the fromElement or toElementevent property, which is what the fallback uses when relatedTarget doesn't exist.
React.MouseEvent#relatedTarget is undefined in firefox on windows (should be null)
React version: 16.12.0
Steps To Reproduce
Link to code example: https://codesandbox.io/s/strange-wiles-c4ku2
In the example, if you move the mouse from the blue box to the top, you see the types of
event.relatedTarget
andevent.nativeEvent.relatedTarget
, you see "undefined, object".The current behavior
when event.nativeEvent.relatedTarget is null, event.relatedTarget is undefined.
The expected behavior
event.relatedTarget should be null
The text was updated successfully, but these errors were encountered: