Skip to content

Commit 53f398e

Browse files
committed
fix: restore
1 parent a3ce342 commit 53f398e

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

Mobile-Expensify

src/CONST/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5191,7 +5191,7 @@ const CONST = {
51915191
* The maximum count of items per page for SelectionList.
51925192
* When paginate, it multiplies by page number.
51935193
*/
5194-
MAX_SELECTION_LIST_PAGE_LENGTH: 500,
5194+
MAX_SELECTION_LIST_PAGE_LENGTH: 50,
51955195

51965196
/**
51975197
* Bank account names

src/components/SelectionList/BaseSelectionList.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,9 @@ function BaseSelectionList<TItem extends ListItem>(
806806
: 0;
807807

808808
// Reset the current page to 1 when the user types something
809-
setCurrentPage(1);
809+
if (prevTextInputValue !== textInputValue) {
810+
setCurrentPage(1);
811+
}
810812

811813
updateAndScrollToFocusedIndex(newSelectedIndex);
812814
}, [

0 commit comments

Comments
 (0)