From 8e251947c3e03d25f580811548d925be2a9b5cb0 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Wed, 27 Sep 2023 17:25:01 +0200 Subject: [PATCH] Update drag-n-drop.tsx --- libs/remix-ui/drag-n-drop/src/lib/drag-n-drop.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/remix-ui/drag-n-drop/src/lib/drag-n-drop.tsx b/libs/remix-ui/drag-n-drop/src/lib/drag-n-drop.tsx index 96259d6d41..6427dbed12 100644 --- a/libs/remix-ui/drag-n-drop/src/lib/drag-n-drop.tsx +++ b/libs/remix-ui/drag-n-drop/src/lib/drag-n-drop.tsx @@ -88,10 +88,10 @@ export const Draggable = (props: DraggableType) => { handleDrop(event) }} onDragStart={(event) => { - if(destination && destination.path === '/'){ + if (destination && destination.path === '/'){ event.preventDefault() event.stopPropagation - }else + } else if (destination) { handleDrag()