Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(studio): close popover menu when dragging block (FE-4301) (#49912)

Charis1308a1d0d0e6
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