Skip to content

React events: fix nested Hover components error #15428

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

Merged
merged 2 commits into from
Apr 17, 2019

Conversation

necolas
Copy link
Contributor

@necolas necolas commented Apr 16, 2019

Introduces a test that reproduces the error and unexpected output. The error was being caused by the hoverTarget being set to null even if the module bailed out of dispatching the hover end events.

How to achieving the desired results for nested Hover will require further consideration.

Ref #15257

@necolas necolas force-pushed the react-events/fix-hover branch from 652d7dd to 80bfb11 Compare April 17, 2019 18:18
@necolas
Copy link
Contributor Author

necolas commented Apr 17, 2019

Updated the patch to remove the addition of support for stopPropagation (no functional difference to the Hover module at the moment). Press is listening to pointermove on the root, and at the moment if Hover prevents bubbling Press stops working correctly.

@necolas necolas merged commit 1ae409d into facebook:master Apr 17, 2019
@necolas necolas deleted the react-events/fix-hover branch May 3, 2019 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants