From 765925117fd10036b540c3374a3bff75a168d78a Mon Sep 17 00:00:00 2001 From: Johnpaul Date: Thu, 4 Dec 2025 21:32:19 +0100 Subject: [PATCH 1/2] fix: preserve node selection on right-click Previously, right-clicking on a Vue node would deselect all other selected nodes because the pointerup event handler was calling toggleNodeSelectionAfterPointerUp regardless of which mouse button was released. This fix skips selection handling when the right mouse button (button 2) is released, allowing the context menu to operate on the existing selection. --- .../vueNodes/composables/useNodePointerInteractions.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.ts b/src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.ts index 26d2b8a4b0..d3461d4c39 100644 --- a/src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.ts +++ b/src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.ts @@ -127,6 +127,10 @@ export function useNodePointerInteractions( safeDragEnd(event) return } + + // Skip selection handling for right-click (button 2) - context menu handles its own selection + if (event.button === 2) return + const multiSelect = isMultiSelectKey(event) const nodeId = toValue(nodeIdRef) From b10c876c942ef84fc330202d1a5fbc6e5016bbc5 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 4 Dec 2025 20:38:15 +0000 Subject: [PATCH 2/2] [automated] Apply ESLint and Prettier fixes --- src/scripts/app.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripts/app.ts b/src/scripts/app.ts index 051b76048e..9c152d4bea 100644 --- a/src/scripts/app.ts +++ b/src/scripts/app.ts @@ -1457,7 +1457,9 @@ export class ComfyApp { }) return } else { - console.error('Invalid workflow structure, trying parameters fallback') + console.error( + 'Invalid workflow structure, trying parameters fallback' + ) this.showErrorOnFileLoad(file) } } catch (err) {