File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ var CodeMirror = createReactClass({
6565 }
6666 } ,
6767 componentWillReceiveProps : function componentWillReceiveProps ( nextProps ) {
68- if ( this . codeMirror && nextProps . value !== undefined && nextProps . value !== this . props . value && normalizeLineEndings ( this . codeMirror . getValue ( ) ) !== normalizeLineEndings ( nextProps . value ) ) {
68+ if ( this . codeMirror && nextProps . value !== undefined && normalizeLineEndings ( this . codeMirror . getValue ( ) ) !== normalizeLineEndings ( nextProps . value ) ) {
6969 if ( this . props . preserveScrollPosition ) {
7070 var prevScrollPosition = this . codeMirror . getScrollInfo ( ) ;
7171 this . codeMirror . setValue ( nextProps . value ) ;
@@ -133,4 +133,4 @@ var CodeMirror = createReactClass({
133133 }
134134} ) ;
135135
136- module . exports = CodeMirror ;
136+ module . exports = CodeMirror ;
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ const CodeMirror = createReactClass({
6363 }
6464 } ,
6565 componentWillReceiveProps : function ( nextProps ) {
66- if ( this . codeMirror && nextProps . value !== undefined && nextProps . value !== this . props . value && normalizeLineEndings ( this . codeMirror . getValue ( ) ) !== normalizeLineEndings ( nextProps . value ) ) {
66+ if ( this . codeMirror && nextProps . value !== undefined && normalizeLineEndings ( this . codeMirror . getValue ( ) ) !== normalizeLineEndings ( nextProps . value ) ) {
6767 if ( this . props . preserveScrollPosition ) {
6868 var prevScrollPosition = this . codeMirror . getScrollInfo ( ) ;
6969 this . codeMirror . setValue ( nextProps . value ) ;
You can’t perform that action at this time.
0 commit comments