Skip to content

Commit eb31c8c

Browse files
committed
added preventDefault
1 parent 70f0d2b commit eb31c8c

File tree

1 file changed

+1
-0
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/tool-input

1 file changed

+1
-0
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/components/sub-block/components/tool-input/tool-input.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,7 @@ export function ToolInput({
672672

673673
const handleDragStart = (e: React.DragEvent, index: number) => {
674674
if (isPreview || disabled) return
675+
e.preventDefault()
675676
setDraggedIndex(index)
676677
e.dataTransfer.effectAllowed = 'move'
677678
e.dataTransfer.setData('text/html', '')

0 commit comments

Comments
 (0)