diff --git a/apps/studio/components/ui/SortableSection.tsx b/apps/studio/components/ui/SortableSection.tsx index fa66764ab6d..1c31fcaa49f 100644 --- a/apps/studio/components/ui/SortableSection.tsx +++ b/apps/studio/components/ui/SortableSection.tsx @@ -27,7 +27,11 @@ export const SortableSection = ({ useDndMonitor({ onDragStart: (event) => { - if (event.active.id === id) isDraggingRef.current = true + if (event.active.id === id) { + isDraggingRef.current = true + clearTimeout(openTimeoutRef.current) + setMenuOpen(false) + } }, onDragEnd: (event) => { if (event.active.id === id) isDraggingRef.current = false