Skip to content

Commit

Permalink
Merge pull request #9690 from Expensify/revert-9674-Rory-FixScrollToI…
Browse files Browse the repository at this point in the history
…ndex

Revert "Fix off-by-one error in scrollToIndex"
  • Loading branch information
Julesssss authored Jul 4, 2022
2 parents 2c1032f + 72f8825 commit 6ebe68d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/OptionsSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class OptionsSelector extends Component {
focusedIndex: newFocusedIndex,
});

if (newOptions.length < newFocusedIndex) {
if (newOptions.length <= newFocusedIndex) {
return;
}
this.scrollToIndex(newFocusedIndex);
Expand Down

0 comments on commit 6ebe68d

Please sign in to comment.