dillon1000/react

Commit

Fix incorrect calculation of onMouseEnter/Leave component path (#11164)

* Add a regression test for #10906

* Turn while conditions into breaks without changing the logic

This will be easier to follow when we add more code there.

* var => const/let

So that I can add a block scoped variable.

* Check alternates when comparing to the common ancestor

This is the actual bugfix.
Browse files
Changed paths2 files
First-parent comparison
M src/renderers/dom/shared/eventPlugins/__tests__/EnterLeaveEventPlugin-test.js ModifiedM src/renderers/shared/shared/ReactTreeTraversal.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…