Skip to content

Commit 3fb3861

Browse files
authored
fix: expose item dragIds for DragPreview (#273)
1 parent 5fb8004 commit 3fb3861

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/react-arborist/src/dnd/drag-hook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function useDragHook<T>(node: NodeApi<T>): ConnectDragSource {
2020
// This is fired once at the begging of a drag operation
2121
const dragIds = tree.isSelected(node.id) ? Array.from(ids) : [node.id];
2222
tree.dispatch(dnd.dragStart(node.id, dragIds));
23-
return { id: node.id };
23+
return { id: node.id, dragIds };
2424
},
2525
end: () => {
2626
tree.hideCursor();

0 commit comments

Comments
 (0)