From 8c0ef9e08b62333e1460cb9179a0e48de837b392 Mon Sep 17 00:00:00 2001 From: dragnoir Date: Tue, 28 May 2024 17:36:06 +0100 Subject: [PATCH] Fix: navigate to invite list by arrow keys --- src/components/SelectionList/BaseSelectionList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SelectionList/BaseSelectionList.tsx b/src/components/SelectionList/BaseSelectionList.tsx index 6609cca03d5a..6f62f8642b45 100644 --- a/src/components/SelectionList/BaseSelectionList.tsx +++ b/src/components/SelectionList/BaseSelectionList.tsx @@ -254,7 +254,7 @@ function BaseSelectionList( initialFocusedIndex: flattenedSections.allOptions.findIndex((option) => option.keyForList === initiallyFocusedOptionKey), maxIndex: Math.min(flattenedSections.allOptions.length - 1, CONST.MAX_SELECTION_LIST_PAGE_LENGTH * currentPage - 1), disabledIndexes: disabledArrowKeyIndexes, - isActive: true, + isActive: isFocused, onFocusedIndexChange: (index: number) => { scrollToIndex(index, true); },