Skip to content

Commit 403396c

Browse files
authored
Revert "feat: Reduce amount of items displayed per page of SelectionList"
1 parent d40d0af commit 403396c

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/CONST/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5183,7 +5183,7 @@ const CONST = {
51835183
* The maximum count of items per page for SelectionList.
51845184
* When paginate, it multiplies by page number.
51855185
*/
5186-
MAX_SELECTION_LIST_PAGE_LENGTH: 50,
5186+
MAX_SELECTION_LIST_PAGE_LENGTH: 500,
51875187

51885188
/**
51895189
* Bank account names

src/components/SelectionList/BaseSelectionList.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -777,9 +777,7 @@ function BaseSelectionList<TItem extends ListItem>(
777777
: 0;
778778

779779
// Reset the current page to 1 when the user types something
780-
if (prevTextInputValue !== textInputValue) {
781-
setCurrentPage(1);
782-
}
780+
setCurrentPage(1);
783781

784782
updateAndScrollToFocusedIndex(newSelectedIndex);
785783
}, [

0 commit comments

Comments
 (0)