Skip to content

React events: fix nested Hover components error#15428

Merged
necolas merged 2 commits into
react:masterfrom
necolas:react-events/fix-hover
Apr 17, 2019
Merged

React events: fix nested Hover components error#15428
necolas merged 2 commits into
react:masterfrom
necolas:react-events/fix-hover

Conversation

@necolas

@necolas necolas commented Apr 16, 2019

Copy link
Copy Markdown
Contributor

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

necolas commented Apr 17, 2019

Copy link
Copy Markdown
Contributor Author

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 react:master Apr 17, 2019
@necolas
necolas deleted the react-events/fix-hover branch May 3, 2019 17:34
mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
* Add failing test for nested Hover
* Fix error caused by nested Hover event components
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