Skip to content

Commit

Permalink
Merge pull request #180 from rpellerin/master
Browse files Browse the repository at this point in the history
Fix #179
  • Loading branch information
alexkrolick committed Apr 7, 2017
2 parents 5fdb6bf + a1071fb commit fa44857
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/component.js
Expand Up @@ -143,12 +143,6 @@ var QuillComponent = React.createClass({
},

componentWillReceiveProps: function(nextProps, nextState) {
// If we need to regenerate the component, we can avoid a detailed
// in-place update step, and just let everything rerender.
if (this.shouldComponentRegenerate(nextProps, nextState)) {
return this.regenerate();
}

var editor = this.editor;

// If the component is unmounted and mounted too quickly
Expand Down Expand Up @@ -176,6 +170,12 @@ var QuillComponent = React.createClass({
this.setEditorReadOnly(editor, nextProps.readOnly);
}
}

// If we need to regenerate the component, we can avoid a detailed
// in-place update step, and just let everything rerender.
if (this.shouldComponentRegenerate(nextProps, nextState)) {
return this.regenerate();
}
},

componentDidMount: function() {
Expand Down

0 comments on commit fa44857

Please sign in to comment.