dillon1000/react
Commit
Browse files Don't let textarea value change via textContent
Turns out my tests before weren't particularly useful because receiveProps doesn't end up running componentDidUpdate since the transaction never finishes. Now they use replaceProps instead (and I verified that commenting out the "rootNode.value = ..." line makes the tests fail, which wasn't true before).
Changed paths2 files
First-parent comparisonsrc/core/ReactDOMTextarea.js ModifiedM src/core/__tests__/ReactDOMTextarea-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…