Skip to content

Commit

Permalink
Revert "Merge pull request #34485 from neonbhai/scroll-behavior-fix"
Browse files Browse the repository at this point in the history
This reverts commit 6ec827d, reversing
changes made to caf91ae.
  • Loading branch information
lakchote committed Jan 30, 2024
1 parent aaa658f commit 47f6a1d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/components/SelectionList/BaseSelectionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,6 @@ function BaseSelectionList<TItem extends User | RadioItem>(
return;
}

// scroll is unnecessary if multiple options cannot be selected
if (!canSelectMultiple) {
return;
}

// set the focus on the first item when the sections list is changed
if (sections.length > 0) {
updateAndScrollToFocusedIndex(0);
Expand Down

0 comments on commit 47f6a1d

Please sign in to comment.