Merge branch 'PRODUCTION' into master
This commit is contained in:
3 files changed
+5
-13
No files matched your search
@@ -74,9 +74,9 @@ const CodeEditor = createClass({
|
||||
}
|
||||
},
|
||||
|
||||
componentWillReceiveProps : function(nextProps){
|
||||
if(this.codeMirror && nextProps.value !== undefined && this.codeMirror.getValue() != nextProps.value) {
|
||||
this.codeMirror.setValue(nextProps.value);
|
||||
componentDidUpdate : function(prevProps) {
|
||||
if(this.codeMirror && this.codeMirror.getValue() != this.props.value) {
|
||||
this.codeMirror.setValue(this.props.value);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user