Skip to content

Commit

Permalink
Fix plain text selection/focus (#19964)
Browse files Browse the repository at this point in the history
* Upgrade react native to 0.62.0-rc.1

* Fix focus on plain text for RN

It looks there was a type and we were checking the incorrect props.

* Revert change on package.json

Co-authored-by: Marko Savic <[email protected]>
  • Loading branch information
SergioEstevao and marecar3 authored Feb 5, 2020
1 parent c2d406f commit 818eb80
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ export default class PlainText extends Component {

componentDidMount() {
// if isSelected is true, we should request the focus on this TextInput
if (
this._input.isFocused() === false &&
this._input.props.isSelected === true
) {
if ( this._input.isFocused() === false && this.props.isSelected ) {
this.focus();
}
}
Expand Down

0 comments on commit 818eb80

Please sign in to comment.