Skip to content

Commit dee059c

Browse files
authored
Revert "Forward disallowSelectAll from useSelectableList to useSelectableCollection (#4464)" (#4695)
This reverts commit 0898ed0.
1 parent 96a42e6 commit dee059c

File tree

3 files changed

+0
-21
lines changed

3 files changed

+0
-21
lines changed

packages/@react-aria/selection/src/useSelectableList.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ export interface AriaSelectableListOptions {
5757
* @default false
5858
*/
5959
disallowEmptySelection?: boolean,
60-
/**
61-
* Whether the collection allows the user to select all items via keyboard shortcut.
62-
* @default false
63-
*/
64-
disallowSelectAll?: boolean,
6560
/**
6661
* Whether selection should occur automatically on focus.
6762
* @default false
@@ -103,7 +98,6 @@ export function useSelectableList(props: AriaSelectableListOptions): SelectableL
10398
shouldFocusWrap,
10499
isVirtualized,
105100
disallowEmptySelection,
106-
disallowSelectAll,
107101
selectOnFocus = selectionManager.selectionBehavior === 'replace',
108102
disallowTypeAhead,
109103
shouldUseVirtualFocus,
@@ -125,7 +119,6 @@ export function useSelectableList(props: AriaSelectableListOptions): SelectableL
125119
autoFocus,
126120
shouldFocusWrap,
127121
disallowEmptySelection,
128-
disallowSelectAll,
129122
selectOnFocus,
130123
disallowTypeAhead,
131124
shouldUseVirtualFocus,

packages/@react-aria/selection/stories/useSelectableList.stories.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,3 @@ export const MultiSelectDisallowEmptySelectOnFocus = () => (
228228
MultiSelectDisallowEmptySelectOnFocus.story = {
229229
name: 'multi select, disallow empty, select on focus'
230230
};
231-
232-
export const MultiSelectDisallowSelectAll = () => (
233-
<List selectionMode="multiple" disallowSelectAll>
234-
<Item>Paco de Lucia</Item>
235-
<Item>Vicente Amigo</Item>
236-
<Item>Gerardo Nunez</Item>
237-
</List>
238-
);
239-
240-
MultiSelectDisallowSelectAll.story = {
241-
name: 'multi select, disallow select all'
242-
};

packages/@react-types/shared/src/selection.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ export interface MultipleSelection {
3131
selectionMode?: SelectionMode,
3232
/** Whether the collection allows empty selection. */
3333
disallowEmptySelection?: boolean,
34-
/** Whether the collection allows the user to select all items via keyboard shortcut. */
35-
disallowSelectAll?: boolean,
3634
/** The currently selected keys in the collection (controlled). */
3735
selectedKeys?: 'all' | Iterable<Key>,
3836
/** The initial selected keys in the collection (uncontrolled). */

0 commit comments

Comments
 (0)