Skip to content

Commit

Permalink
Fix issue when editor is not initialized yet
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Feb 12, 2018
1 parent 8127ba2 commit efff741
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions blocks/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,7 @@ export class RichText extends Component {
componentDidUpdate( prevProps ) {
// The `savedContent` var allows us to avoid updating the content right after an `onChange` call
if (
!! this.editor &&
this.props.tagName === prevProps.tagName &&
this.props.value !== prevProps.value &&
this.props.value !== this.savedContent
Expand Down

0 comments on commit efff741

Please sign in to comment.