From 88fba256171e3de56e040c4082da303c8d4309b7 Mon Sep 17 00:00:00 2001 From: Rizumu Ayaka Date: Tue, 27 Jan 2026 09:36:37 +0700 Subject: [PATCH] fix: group recompute in item selection for properties panel (#8274) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Group first click displays an empty node list in Right Side Panel. The reason is that when clicking the group, only `processSelect()` is called, and `recomputeInsideNodes()` is not called. related https://github.com/Comfy-Org/ComfyUI_frontend/pull/8275 ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8274-fix-group-recompute-in-item-selection-for-properties-panel-2f16d73d3650812ca394dc9de3d6855b) by [Unito](https://www.unito.io) --- src/lib/litegraph/src/LGraphCanvas.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/litegraph/src/LGraphCanvas.ts b/src/lib/litegraph/src/LGraphCanvas.ts index 40893174f..37c0950a2 100644 --- a/src/lib/litegraph/src/LGraphCanvas.ts +++ b/src/lib/litegraph/src/LGraphCanvas.ts @@ -4283,6 +4283,12 @@ export class LGraphCanvas implements CustomEventDispatcher item.selected = true this.selectedItems.add(item) this.state.selectionChanged = true + + if (item instanceof LGraphGroup) { + item.recomputeInsideNodes() + return + } + if (!(item instanceof LGraphNode)) return // Node-specific handling