Skip to content

Commit b47c9f9

Browse files
committed
Fix lint issue
1 parent 30d7a22 commit b47c9f9

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

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

+3-5
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ export interface GridListProps<T> extends CollectionBase<T>, MultipleSelection {
3939
*/
4040
onAction?: (key: Key) => void,
4141
/** Whether `disabledKeys` applies to all interactions, or only selection. */
42-
disabledBehavior?: DisabledBehavior
42+
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.

packages/react-aria-components/stories/GridList.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const MyGridListItem = (props: GridListItemProps) => {
6666
GridListExample.story = {
6767
args: {
6868
layout: 'stack',
69-
shouldSelectOnPressUp: false,
69+
shouldSelectOnPressUp: false
7070
},
7171
argTypes: {
7272
layout: {

0 commit comments

Comments
 (0)