Skip to content

Commit

Permalink
Remove focus from RichText when unmounting
Browse files Browse the repository at this point in the history
In #15999 this behavior was changed to prevent the keyboard from disappearing
when you press Enter to create a new paragraph.

This worked in that case, but had the side effect of TextInputState still
thinking a dead view had focus, and causing a crash in some scenarios.
  • Loading branch information
koke committed Jun 13, 2019
1 parent 1f3f794 commit 985897f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ export class RichText extends Component {

componentWillUnmount() {
if ( this._editor.isFocused() ) {
// this._editor.blur();
this._editor.blur();
}
}

Expand Down

0 comments on commit 985897f

Please sign in to comment.