Skip to content

Commit

Permalink
fix focusedIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Jan 24, 2023
1 parent ae66a7f commit 066018a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/OptionsSelector/BaseOptionsSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class BaseOptionsSelector extends Component {
}

const newOptions = this.flattenSections();
const newFocusedIndex = this.props.selectedOptions.length;
const newFocusedIndex = this.props.shouldTextInputAppearBelowOptions ? newOptions.length : this.props.selectedOptions.length;
// eslint-disable-next-line react/no-did-update-set-state
this.setState({
allOptions: newOptions,
Expand Down

0 comments on commit 066018a

Please sign in to comment.