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
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.relatedTargetandevent.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