Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dff885 commit f9948a5Copy full SHA for f9948a5
draft-js-plugins-editor/src/Editor/index.js
@@ -65,11 +65,7 @@ class PluginEditor extends Component {
65
componentWillReceiveProps(next) {
66
if (
67
this.props.editorState.getDecorator() !== null &&
68
- (
69
- next.editorState.getDecorator() === null ||
70
- next.editorState.getDecorator().decorators.size
71
- !== this.props.editorState.getDecorator().decorators.size
72
- )
+ this.props.editorState.getDecorator() !== next.editorState.getDecorator()
73
) {
74
const decorator = this.props.editorState.getDecorator();
75
const editorState = EditorState.set(next.editorState, { decorator });
0 commit comments