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 authored and aduth committed Apr 27, 2017
1 parent eb4cb05 commit f95ffcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/components/editable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export default class Editable extends wp.element.Component {

if (
this.props.tagName === prevProps.tagName &&
this.props.value !== prevProps.value
wp.element.renderToString( this.props.value ) !== wp.element.renderToString( prevProps.value )
) {
this.updateContent();
}
Expand Down

0 comments on commit f95ffcf

Please sign in to comment.