Skip to content

Commit 3ca8e30

Browse files
authored
chore: exclude onMove from RSP useDragAndDrop (#8350)
1 parent cd9e55a commit 3ca8e30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@react-spectrum/dnd/src/useDragAndDrop.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export interface DragAndDropHooks {
6060
dragAndDropHooks: DragHooks & DropHooks & {isVirtualDragging?: () => boolean, renderPreview?: (keys: Set<Key>, draggedKey: Key) => JSX.Element}
6161
}
6262

63-
export interface DragAndDropOptions extends Omit<DraggableCollectionProps, 'preview' | 'getItems'>, DroppableCollectionProps {
63+
export interface DragAndDropOptions extends Omit<DraggableCollectionProps, 'preview' | 'getItems'>, Omit<DroppableCollectionProps, 'onMove'> {
6464
/**
6565
* A function that returns the items being dragged. If not specified, we assume that the collection is not draggable.
6666
* @default () => []

0 commit comments

Comments
 (0)