Skip to content

Commit

Permalink
fix: fix draggable box issue in hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
darthtrevino committed Jun 7, 2019
1 parent 617c225 commit bc9b81f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -37,7 +37,7 @@ export interface DraggableBoxProps {
const DraggableBox: React.FC<DraggableBoxProps> = 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(),
}),
Expand Down

0 comments on commit bc9b81f

Please sign in to comment.