mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Don't set value if it'll be a noop
This commit is contained in:
@@ -54,7 +54,7 @@ var ReactDOMTextarea = ReactCompositeComponent.createClass({
|
||||
componentDidUpdate: function(prevProps, prevState, rootNode) {
|
||||
var oldContent = getTextContent(prevProps);
|
||||
var newContent = getTextContent(this.props);
|
||||
if (oldContent !== newContent) {
|
||||
if (oldContent !== newContent && rootNode.value !== newContent) {
|
||||
rootNode.value = newContent;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user