We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1067aff commit 64e4a40Copy full SHA for 64e4a40
packages/@react-aria/selection/src/useSelectableCollection.ts
@@ -424,7 +424,7 @@ export function useSelectableCollection(options: AriaSelectableCollectionOptions
424
}
425
426
// If the focused key becomes null (e.g. the last item is deleted), focus the whole collection.
427
- if (manager.isFocused && manager.focusedKey == null && lastFocusedKey.current != null) {
+ if (!shouldUseVirtualFocus && manager.isFocused && manager.focusedKey == null && lastFocusedKey.current != null) {
428
focusSafely(ref.current);
429
430
0 commit comments