-
Notifications
You must be signed in to change notification settings - Fork 48.6k
onMouseOver is not triggered for a component rendered under the mouse until the mouse moves. #2621
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
Comments
A temporary fix is something like this:
|
Also, mouseEnter event never triggers. |
I don't think React should implement the behavior described in this issue. It's not React-specific. Certain browsers (eg Chrome, Safari) don't dispatch a mouseover or mouseenter event in the case you've described (even using vanilla JS) until the mouse moves again. I don't think React should try to iron over this behavior. I'm going to close this issue for now. We can always reopen it if other's feel strongly. 😄 |
Experiencing the same issue. |
If a component is rendered that registers for onMouseOver events, and it is rendered under the mouse, it should have it's onMouseOver callback invoked.
The text was updated successfully, but these errors were encountered: