We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fb8004 commit 3fb3861Copy full SHA for 3fb3861
modules/react-arborist/src/dnd/drag-hook.ts
@@ -20,7 +20,7 @@ export function useDragHook<T>(node: NodeApi<T>): ConnectDragSource {
20
// This is fired once at the begging of a drag operation
21
const dragIds = tree.isSelected(node.id) ? Array.from(ids) : [node.id];
22
tree.dispatch(dnd.dragStart(node.id, dragIds));
23
- return { id: node.id };
+ return { id: node.id, dragIds };
24
},
25
end: () => {
26
tree.hideCursor();
0 commit comments