From 403396c735df92a622474377f1ef8df3e9877cab Mon Sep 17 00:00:00 2001 From: Vit Horacek <36083550+mountiny@users.noreply.github.com> Date: Thu, 10 Jul 2025 08:34:55 +0200 Subject: [PATCH] Revert "feat: Reduce amount of items displayed per page of SelectionList" --- src/CONST/index.ts | 2 +- src/components/SelectionList/BaseSelectionList.tsx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/CONST/index.ts b/src/CONST/index.ts index ead9df584ca4..6f83861b5717 100755 --- a/src/CONST/index.ts +++ b/src/CONST/index.ts @@ -5183,7 +5183,7 @@ const CONST = { * The maximum count of items per page for SelectionList. * When paginate, it multiplies by page number. */ - MAX_SELECTION_LIST_PAGE_LENGTH: 50, + MAX_SELECTION_LIST_PAGE_LENGTH: 500, /** * Bank account names diff --git a/src/components/SelectionList/BaseSelectionList.tsx b/src/components/SelectionList/BaseSelectionList.tsx index d1a4352a077c..765813b7aa22 100644 --- a/src/components/SelectionList/BaseSelectionList.tsx +++ b/src/components/SelectionList/BaseSelectionList.tsx @@ -777,9 +777,7 @@ function BaseSelectionList( : 0; // Reset the current page to 1 when the user types something - if (prevTextInputValue !== textInputValue) { - setCurrentPage(1); - } + setCurrentPage(1); updateAndScrollToFocusedIndex(newSelectedIndex); }, [