Skip to content

Commit f95ffcf

Browse files
youknowriadaduth
authored andcommitted
Text Block: Fix updating the content of an empty text block
1 parent eb4cb05 commit f95ffcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blocks/components/editable/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ export default class Editable extends wp.element.Component {
261261

262262
if (
263263
this.props.tagName === prevProps.tagName &&
264-
this.props.value !== prevProps.value
264+
wp.element.renderToString( this.props.value ) !== wp.element.renderToString( prevProps.value )
265265
) {
266266
this.updateContent();
267267
}

0 commit comments

Comments
 (0)