From 08bd3f2c925d6686c9cf9f29b3bfab7055037472 Mon Sep 17 00:00:00 2001 From: Danilo Ercoli Date: Fri, 14 Dec 2018 19:42:48 +0100 Subject: [PATCH] Remove the call that does `blur` the undelying native component when deselecting RichText or PlainText. --- packages/editor/src/components/plain-text/index.native.js | 6 ------ packages/editor/src/components/rich-text/index.native.js | 2 -- 2 files changed, 8 deletions(-) diff --git a/packages/editor/src/components/plain-text/index.native.js b/packages/editor/src/components/plain-text/index.native.js index 2373f85ea5815..f7b923b5b976f 100644 --- a/packages/editor/src/components/plain-text/index.native.js +++ b/packages/editor/src/components/plain-text/index.native.js @@ -21,12 +21,6 @@ export default class PlainText extends Component { } } - componentDidUpdate( prevProps ) { - if ( ! this.props.isSelected && prevProps.isSelected ) { - this._input.blur(); - } - } - focus() { this._input.focus(); } diff --git a/packages/editor/src/components/rich-text/index.native.js b/packages/editor/src/components/rich-text/index.native.js index 9ca46d027e2e4..fa1a391e28dbb 100644 --- a/packages/editor/src/components/rich-text/index.native.js +++ b/packages/editor/src/components/rich-text/index.native.js @@ -292,8 +292,6 @@ export class RichText extends Component { componentDidUpdate( prevProps ) { if ( this.props.isSelected && ! prevProps.isSelected ) { this._editor.focus(); - } else if ( ! this.props.isSelected && prevProps.isSelected ) { - this._editor.blur(); } }