diff --git a/blocks/editable/index.js b/blocks/editable/index.js index 3b3f20dbdba3c4..536633331d6dcf 100644 --- a/blocks/editable/index.js +++ b/blocks/editable/index.js @@ -287,8 +287,10 @@ export default class Editable extends Component { } } - onChange() { - if ( ! this.editor.isDirty() ) { + onChange( shouldForce ) { + // Note that due to efficiency, speed and low cost requirements isDirty may + // not reflect reality for a brief period immediately after a change. + if ( ! shouldForce && ! this.editor.isDirty() ) { return; } @@ -391,7 +393,7 @@ export default class Editable extends Component { ) ) { const forward = event.keyCode === DELETE; - this.onChange(); + this.onChange( true ); this.props.onMerge( forward ); event.preventDefault(); event.stopImmediatePropagation();