From fb68564bff2541d980ed319597b602da46ebcfc4 Mon Sep 17 00:00:00 2001 From: FitseTLT Date: Sat, 9 Mar 2024 00:09:44 +0300 Subject: [PATCH] return actualindex --- src/hooks/useArrowKeyFocusManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useArrowKeyFocusManager.ts b/src/hooks/useArrowKeyFocusManager.ts index 458a39d91ca5..7a674b46c337 100644 --- a/src/hooks/useArrowKeyFocusManager.ts +++ b/src/hooks/useArrowKeyFocusManager.ts @@ -132,7 +132,7 @@ export default function useArrowKeyFocusManager({ if (newFocusedIndex > maxIndex) { if (disableCyclicTraversal) { - break; + return actualIndex; } newFocusedIndex = 0; }