dillon1000/react

Commit

Don't update value or textContent unnecessarily

_updateDOMChildren was already updating textContent so we don't need to
do it in _updateDOMProperties. Additionally, don't update .value if
it'll be a noop because it has side-effects (like moving the cursor) in
some browsers (like IE 9).

Refactor tests to be a bit more robust and a bit cleaner too.
Browse files
Changed paths3 files
First-parent comparison
M src/core/ReactDOMTextarea.js ModifiedM src/core/ReactNativeComponent.js ModifiedM src/core/__tests__/ReactDOMTextarea-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…