Commit a1b947a 1 parent 843503e commit a1b947a Copy full SHA for a1b947a
File tree 1 file changed +1
-11
lines changed
src/components/EditorWidgets/Markdown/MarkdownControl/VisualEditor
1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -44,17 +44,7 @@ export default class Editor extends Component {
44
44
}
45
45
46
46
shouldComponentUpdate ( nextProps , nextState ) {
47
- return ( this . props . value !== null && nextProps . value === null )
48
- || ( this . props . value === null && nextProps . value !== null )
49
- || ! this . state . value . equals ( nextState . value ) ;
50
- }
51
-
52
- componentWillUpdate ( nextProps ) {
53
- const shouldResetState = ( this . props . value !== null && nextProps . value === null )
54
- || ( this . props . value === null && nextProps . value !== null )
55
- if ( shouldResetState ) {
56
- this . setState ( { value : createSlateValue ( nextProps . value ) } ) ;
57
- }
47
+ return ! this . state . value . equals ( nextState . value ) ;
58
48
}
59
49
60
50
handlePaste = ( e , data , change ) => {
You can’t perform that action at this time.
0 commit comments