dillon1000/react
Commit
Browse files Don't crash in event handling when mixing React copies
Should fix #1939. Test Plan: With two copies of React, render a div using React1 and use that as a container to render a div with React2. Add onMouseEnter/onMouseLeave to both divs that log. Mouse around and see correct logs (as if each React was isolated), no errors.
Changed paths6 files
First-parent comparisonsrc/renderers/dom/client/ReactEventListener.js ModifiedM src/renderers/dom/client/ReactMount.js ModifiedM src/renderers/dom/client/__tests__/ReactBrowserEventEmitter-test.js ModifiedM src/renderers/dom/client/eventPlugins/EnterLeaveEventPlugin.js ModifiedM src/renderers/dom/client/wrappers/ReactDOMInput.js ModifiedM src/renderers/shared/reconciler/__tests__/ReactInstanceHandles-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…