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 9, 2018
1 parent 87ca673 commit 15fa35c
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 @@ -689,6 +689,7 @@ export default 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 15fa35c

Please sign in to comment.