Skip to content

Commit

Permalink
[rnmobile]: Merge rnmobile/release/0.3 into master (#13162)
Browse files Browse the repository at this point in the history
* temporarily disable link formatting

* Make sure RichText resigns focus when unmounted (#13048)
  • Loading branch information
etoledom authored and youknowriad committed Mar 6, 2019
1 parent 59481c2 commit 5e4e5df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/editor/src/components/rich-text/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5e4e5df

Please sign in to comment.