From 196af1260373f4ebaa15bab79693303e37925b5f Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Wed, 4 Mar 2026 13:02:03 -0700 Subject: [PATCH] Fix TS; --- .../BaseSelectionListWithSections.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/SelectionList/SelectionListWithSections/BaseSelectionListWithSections.tsx b/src/components/SelectionList/SelectionListWithSections/BaseSelectionListWithSections.tsx index 2f110153fd36c..064f258f42a6e 100644 --- a/src/components/SelectionList/SelectionListWithSections/BaseSelectionListWithSections.tsx +++ b/src/components/SelectionList/SelectionListWithSections/BaseSelectionListWithSections.tsx @@ -119,10 +119,6 @@ function BaseSelectionListWithSections({ const debouncedScrollToIndex = useDebounce(scrollToIndex, CONST.TIMING.LIST_SCROLLING_DEBOUNCE_TIME, {leading: true, trailing: true}); - const onArrowUpDownCallback = useCallback(() => { - setShouldDisableHoverStyle(true); - }, [setShouldDisableHoverStyle]); - const [focusedIndex, setFocusedIndex] = useArrowKeyFocusManager({ initialFocusedIndex, maxIndex: flattenedData.length - 1, @@ -137,7 +133,7 @@ function BaseSelectionListWithSections({ }, setHasKeyBeenPressed, isFocused: isScreenFocused, - onArrowUpDownCallback, + onArrowUpDownCallback: () => setShouldDisableHoverStyle(true), }); const getFocusedItem = (): TItem | undefined => {