dillon1000/react
Commit
Browse files 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.
Changed paths2 files
First-parent comparisonsrc/renderers/dom/shared/eventPlugins/__tests__/EnterLeaveEventPlugin-test.js ModifiedM src/renderers/shared/shared/ReactTreeTraversal.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…