Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: different handling of onMouseEnter & onMouseLeave based on pointerEvents in Chrome #19692

Closed
layershifter opened this issue Aug 25, 2020 · 4 comments
Labels
Resolution: Stale Automatically closed due to inactivity Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@layershifter
Copy link

layershifter commented Aug 25, 2020

React: 16.13.1
React-DOM: 16.13.1

Chrome 84.0.4147.135.
MS Edge 84.0.522.63.


This looks somehow related to #4251.

Steps To Reproduce

  1. Open a CodeSandbox, https://codesandbox.io/s/laughing-sound-ox5yz
  2. Move your mouse from the "point 1" to "point 2". Move your mouse from the "point 2" to "point 1".

The current behavior

image

Notice in your console:

#disabled:mouseenter 

For the button #disabled-style with the same movement:

#disabled-style:mouseenter 
#disabled-style:mouseleave 

The difference is that #disabled-style has pointer-events: none.

The expected behavior

Both buttons should log the same output.

It works?

@layershifter layershifter added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Aug 25, 2020
@dzearing
Copy link

Related: it seems that onMouseLeave in React is actually mapping to the native mouseout event. Which itself seems to have inconsistencies in browsers.

@dandclark
Copy link

Suspected root cause is: https://crbug.com/1121675.

Although I don't know why some folks do not repro in Edge Dev 86. For me the issue repros there as well.

@stale
Copy link

stale bot commented Dec 25, 2020

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@stale stale bot added the Resolution: Stale Automatically closed due to inactivity label Dec 25, 2020
@layershifter
Copy link
Author

Does not repro anymore in latest Chrome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Stale Automatically closed due to inactivity Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

No branches or pull requests

3 participants