Skip to content

Commit 0291827

Browse files
committed
remove redundant code.
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
1 parent cac3654 commit 0291827

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/components/SelectionList/BaseSelectionList.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -837,11 +837,6 @@ function BaseSelectionList<TItem extends ListItem>(
837837
}
838838
}
839839

840-
// Reset the current page to 1 when the user types something
841-
if (prevTextInputValue !== textInputValue) {
842-
setCurrentPage(1);
843-
}
844-
845840
// Remove the focus if the search input is empty and prev search input not empty or selected options length is changed (and allOptions length remains the same)
846841
// else focus on the first non disabled item
847842
const newSelectedIndex =

0 commit comments

Comments
 (0)