From 4bd56108b69fc3d50b0b2039d2e04b6e665d10b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Muzyk?= Date: Tue, 8 Jul 2025 12:12:26 +0200 Subject: [PATCH 1/2] feat: 65634 Reduce amount of items displayed per page of SelectionList --- src/CONST/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CONST/index.ts b/src/CONST/index.ts index ae37de14951bc..f76682c3f1e9b 100755 --- a/src/CONST/index.ts +++ b/src/CONST/index.ts @@ -5177,7 +5177,7 @@ const CONST = { * The maximum count of items per page for SelectionList. * When paginate, it multiplies by page number. */ - MAX_SELECTION_LIST_PAGE_LENGTH: 500, + MAX_SELECTION_LIST_PAGE_LENGTH: 50, /** * Bank account names From 290889fd1deec6b9535cde79c18d0b9e3e8227c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Muzyk?= Date: Tue, 8 Jul 2025 14:09:38 +0200 Subject: [PATCH 2/2] fix: Reset the current page only when text actually changes --- src/components/SelectionList/BaseSelectionList.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/SelectionList/BaseSelectionList.tsx b/src/components/SelectionList/BaseSelectionList.tsx index f8116710869bb..f544a65442a97 100644 --- a/src/components/SelectionList/BaseSelectionList.tsx +++ b/src/components/SelectionList/BaseSelectionList.tsx @@ -771,7 +771,9 @@ function BaseSelectionList( : 0; // Reset the current page to 1 when the user types something - setCurrentPage(1); + if (prevTextInputValue !== textInputValue) { + setCurrentPage(1); + } updateAndScrollToFocusedIndex(newSelectedIndex); }, [