dillon1000/react

Commit

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.
Browse files
Changed paths5 files
First-parent comparison
M scripts/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 Modified
Patch

Files changed

Rendering syntax-highlighted changes…