Skip to content

Commit

Permalink
Merge pull request #11657 from Expensify/Rory-MigrateFindNodeHandle
Browse files Browse the repository at this point in the history
Remove unnecessary findNodeHandle
  • Loading branch information
arosiclair authored Oct 10, 2022
2 parents d918a6a + f9bde4e commit 10074fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/OptionsSelector/BaseOptionsSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import _ from 'underscore';
import lodashGet from 'lodash/get';
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {View, findNodeHandle} from 'react-native';
import {View} from 'react-native';
import Button from '../Button';
import FixedFooter from '../FixedFooter';
import OptionsList from '../OptionsList';
Expand Down Expand Up @@ -203,7 +203,7 @@ class BaseOptionsSelector extends Component {
if (this.props.shouldFocusOnSelectRow) {
// Input is permanently focused on native platforms, so we always highlight the text inside of it
this.textInput.setNativeProps({selection: {start: 0, end: this.props.value.length}});
if (this.relatedTarget && ref === findNodeHandle(this.relatedTarget)) {
if (this.relatedTarget && ref === this.relatedTarget) {
this.textInput.focus();
}
this.relatedTarget = null;
Expand Down

0 comments on commit 10074fc

Please sign in to comment.