Skip to content

Commit

Permalink
Text Block: Fix updating the content of an empty text block
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Apr 27, 2017
1 parent eb4cb05 commit e3438e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks/components/editable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ export default class Editable extends wp.element.Component {

if (
this.props.tagName === prevProps.tagName &&
this.props.value !== prevProps.value
this.props.value !== prevProps.value &&
! isEqual( this.props.value, prevProps.value )
) {
this.updateContent();
}
Expand Down

0 comments on commit e3438e3

Please sign in to comment.