Skip to content

Commit

Permalink
return actualindex
Browse files Browse the repository at this point in the history
  • Loading branch information
FitseTLT committed Mar 8, 2024
1 parent 5dbbf91 commit fb68564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useArrowKeyFocusManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export default function useArrowKeyFocusManager({

if (newFocusedIndex > maxIndex) {
if (disableCyclicTraversal) {
break;
return actualIndex;
}
newFocusedIndex = 0;
}
Expand Down

0 comments on commit fb68564

Please sign in to comment.