Skip to content

Commit 3393223

Browse files
authored
Fix typecheck-docs error
Move shouldSelectOnPressUp property from AriaGridListOptions to GridListProps
1 parent 4d438a8 commit 3393223

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/@react-aria/gridlist/src/useGridList.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export interface GridListProps<T> extends CollectionBase<T>, MultipleSelection {
4040
onAction?: (key: Key) => void,
4141
/** Whether `disabledKeys` applies to all interactions, or only selection. */
4242
disabledBehavior?: DisabledBehavior
43+
/** Whether selection should occur on press up instead of press down. */
44+
shouldSelectOnPressUp?: boolean,
4345
}
4446

4547
export interface AriaGridListProps<T> extends GridListProps<T>, DOMProps, AriaLabelingProps {
@@ -75,10 +77,6 @@ export interface AriaGridListOptions<T> extends Omit<AriaGridListProps<T>, 'chil
7577
* @default false
7678
*/
7779
shouldFocusWrap?: boolean,
78-
79-
/** Whether selection should occur on press up instead of press down. */
80-
shouldSelectOnPressUp?: boolean,
81-
8280
/**
8381
* The behavior of links in the collection.
8482
* - 'action': link behaves like onAction.

0 commit comments

Comments
 (0)