We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4955eb2 commit eaecb96Copy full SHA for eaecb96
1 file changed
packages/@react-aria/selection/src/useSelectableCollection.ts
@@ -580,7 +580,7 @@ export function useSelectableCollection(options: AriaSelectableCollectionOptions
580
// This will be marshalled to either the first or last item depending on where focus came from.
581
let tabIndex: number | undefined = undefined;
582
if (!shouldUseVirtualFocus) {
583
- tabIndex = manager.isFocused ? -1 : 0;
+ tabIndex = manager.focusedKey == null ? 0 : -1;
584
}
585
586
let collectionId = useCollectionId(manager.collection);
0 commit comments