From 4c8bde39d945a9b15f69e64de63d2fa9ac364adc Mon Sep 17 00:00:00 2001 From: etoledom Date: Wed, 2 Jan 2019 20:24:53 +0200 Subject: [PATCH] [rnmobile]: Merge rnmobile/release/0.3 into master (#13162) * temporarily disable link formatting * Make sure RichText resigns focus when unmounted (#13048) --- packages/editor/src/components/rich-text/index.native.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/editor/src/components/rich-text/index.native.js b/packages/editor/src/components/rich-text/index.native.js index d8f9a1cfb0476..fd9d074472f5a 100644 --- a/packages/editor/src/components/rich-text/index.native.js +++ b/packages/editor/src/components/rich-text/index.native.js @@ -291,6 +291,12 @@ export class RichText extends Component { } } + componentWillUnmount() { + if ( this._editor.isFocused() ) { + this._editor.blur(); + } + } + componentDidUpdate( prevProps ) { if ( this.props.isSelected && ! prevProps.isSelected ) { this._editor.focus();