diff --git a/packages/editor/src/components/rich-text/index.native.js b/packages/editor/src/components/rich-text/index.native.js index af057f1ba9636..7147a4c12fb75 100644 --- a/packages/editor/src/components/rich-text/index.native.js +++ b/packages/editor/src/components/rich-text/index.native.js @@ -227,18 +227,13 @@ export class RichText extends Component { return value; } - shouldComponentUpdate( nextProps, nextState ) { - if ( nextProps.tagName !== this.props.tagName ) { + shouldComponentUpdate( nextProps ) { + if ( nextProps.tagName !== this.props.tagName || nextProps.isSelected !== this.props.isSelected ) { this.lastEventCount = undefined; this.lastContent = undefined; return true; } - // Update if selection changed - if ( nextState.start !== this.state.start || nextState.end !== this.state.end ) { - return true; - } - // The check below allows us to avoid updating the content right after an `onChange` call. // The first time the component is drawn `lastContent` and `lastEventCount ` are both undefined if ( this.lastEventCount &&