Bug: onMouseEnter behavior when mouse does not enter via boundary is inconsistent between browsers #21991
Labels
Resolution: Stale
Automatically closed due to inactivity
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
Uh oh!
There was an error while loading. Please reload this page.
React version: 17.0.2
Steps To Reproduce
Link to code example:
https://codesandbox.io/s/tender-sun-i1ccy?file=/public/index.html
The current behavior
In Chrome:
The onMouseEnter event handler on Bar is not fired when Foo is removed.
In Firefox:
The onMouseEnter event handler on Bar is fired when Foo is removed.
The expected behavior
onMouseEnter is fired on Bar is fired when Foo is removed. This is the behavior in both chrome and firefox when plain html and js are used:
Spec for MouseEvent seems vague about this issue:
I saw #2621, though it isn't quite the same issue.
Also saw the stack-overflow issue https://stackoverflow.com/q/55836826, which reported this behavior
Chrome version: Version 92.0.4515.107 (Official Build) (x86_64)
Firefox version: 90.0.2 (64-bit)
OS: MacOs 11.2.3 (20D91)
The text was updated successfully, but these errors were encountered: