diff --git a/packages/@react-aria/selection/src/useSelectableCollection.ts b/packages/@react-aria/selection/src/useSelectableCollection.ts index 912ffc04099..4b2cea96c0b 100644 --- a/packages/@react-aria/selection/src/useSelectableCollection.ts +++ b/packages/@react-aria/selection/src/useSelectableCollection.ts @@ -424,7 +424,7 @@ export function useSelectableCollection(options: AriaSelectableCollectionOptions } // If the focused key becomes null (e.g. the last item is deleted), focus the whole collection. - if (manager.isFocused && manager.focusedKey == null && lastFocusedKey.current != null) { + if (!shouldUseVirtualFocus && manager.isFocused && manager.focusedKey == null && lastFocusedKey.current != null) { focusSafely(ref.current); }