dillon1000/react

Commit

Ensure that we're listening to all onChange dependencies for controlled inputs (#8229)

When there is no onChange event handler, we should still listen to it to
ensure controlled values get reset.

There is warning associated with this but the prod behavior should still be
respected.
Browse files
Changed paths2 files
First-parent comparison
M src/renderers/dom/shared/wrappers/__tests__/ReactDOMInput-test.js ModifiedM src/renderers/dom/stack/client/ReactDOMComponent.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…