dillon1000/react

Commit

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).
Browse files
Changed paths2 files
First-parent comparison
M src/core/ReactDOMTextarea.js ModifiedM src/core/__tests__/ReactDOMTextarea-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…