diff --git a/packages/examples-hooks/src/02-drag-around/custom-drag-layer/DraggableBox.tsx b/packages/examples-hooks/src/02-drag-around/custom-drag-layer/DraggableBox.tsx index cf99c82b76..6bcd2f47f3 100644 --- a/packages/examples-hooks/src/02-drag-around/custom-drag-layer/DraggableBox.tsx +++ b/packages/examples-hooks/src/02-drag-around/custom-drag-layer/DraggableBox.tsx @@ -37,7 +37,7 @@ export interface DraggableBoxProps { const DraggableBox: React.FC = props => { const { id, title, left, top } = props const [{ isDragging }, drag, preview] = useDrag({ - item: { type: ItemTypes.BOX, id, left, top }, + item: { type: ItemTypes.BOX, id, left, top, title }, collect: (monitor: DragSourceMonitor) => ({ isDragging: monitor.isDragging(), }),