dillon1000/react
Commit
Browse files 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.
Changed paths3 files
First-parent comparisonsrc/core/ReactDOMTextarea.js ModifiedM src/core/ReactNativeComponent.js ModifiedM src/core/__tests__/ReactDOMTextarea-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…