Skip to content

Commit

Permalink
Remove the call that does blur the undelying native component when …
Browse files Browse the repository at this point in the history
…deselecting RichText or PlainText. (#12886)
  • Loading branch information
daniloercoli committed Dec 14, 2018
1 parent e81aecf commit d9fe45e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions packages/editor/src/components/plain-text/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 0 additions & 2 deletions packages/editor/src/components/rich-text/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit d9fe45e

Please sign in to comment.