dillon1000/react
Commit
Browse files Fixed batching reentrant controlled events (#8240)
If a controlled target fires within another controlled event, we should not restore it until we've fully completed the event. Otherwise, if someone reads from it afterwards, they'll get the restored value. Not super happy with this particular solution.
Changed paths5 files
First-parent comparisonscripts/fiber/tests-failing.txt ModifiedM src/renderers/dom/shared/ReactEventListener.js ModifiedM src/renderers/dom/shared/eventPlugins/ChangeEventPlugin.js ModifiedM src/renderers/dom/shared/wrappers/__tests__/ReactDOMInput-test.js ModifiedM src/renderers/shared/shared/event/ReactGenericBatching.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…