diff --git a/modules/react-arborist/src/dnd/drag-hook.ts b/modules/react-arborist/src/dnd/drag-hook.ts index 22ac564..421e3e3 100644 --- a/modules/react-arborist/src/dnd/drag-hook.ts +++ b/modules/react-arborist/src/dnd/drag-hook.ts @@ -20,7 +20,7 @@ export function useDragHook(node: NodeApi): ConnectDragSource { // This is fired once at the begging of a drag operation const dragIds = tree.isSelected(node.id) ? Array.from(ids) : [node.id]; tree.dispatch(dnd.dragStart(node.id, dragIds)); - return { id: node.id }; + return { id: node.id, dragIds }; }, end: () => { tree.hideCursor();