From b3c79553402de9fe3e67b911a0f7cce303effb57 Mon Sep 17 00:00:00 2001 From: joren Date: Mon, 30 Mar 2026 00:13:46 +0200 Subject: [PATCH] fix: Add Device dropdown was immediately closed by window onclick handler --- frontend/src/components/GraphCanvas.svelte | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/GraphCanvas.svelte b/frontend/src/components/GraphCanvas.svelte index 28c7717..3accd43 100644 --- a/frontend/src/components/GraphCanvas.svelte +++ b/frontend/src/components/GraphCanvas.svelte @@ -239,6 +239,8 @@ if (svgEl && !svgEl.contains(e.target as Node)) return; contextMenu = null; + nodeContextMenu = null; + showVirtualMenu = false; if (e.button === 2) return; const pt = svgPoint(e); const target = e.target as HTMLElement; @@ -418,7 +420,7 @@ onDestroy(() => { destroyGraph(); }); - { contextMenu = null; nodeContextMenu = null; showVirtualMenu = false; }} /> + { contextMenu = null; nodeContextMenu = null; }} />
@@ -453,8 +455,7 @@ - - + {$nodes.length}N {$ports.length}P {$links.length}L {#if $patchbay.pinned_connections.length > 0}{$patchbay.pinned_connections.length}p{/if}