mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-24 00:34:09 +00:00
[fix] Update canvas when removing subgraph IO slots to re-render links (#1173)
This commit is contained in:
@@ -68,6 +68,7 @@ export class SubgraphNode extends LGraphNode implements BaseLGraph {
|
||||
if (widget) this.ensureWidgetRemoved(widget)
|
||||
|
||||
this.removeInput(e.detail.index)
|
||||
this.setDirtyCanvas(true, true)
|
||||
}, { signal })
|
||||
|
||||
subgraphEvents.addEventListener("output-added", (e) => {
|
||||
@@ -77,6 +78,7 @@ export class SubgraphNode extends LGraphNode implements BaseLGraph {
|
||||
|
||||
subgraphEvents.addEventListener("removing-output", (e) => {
|
||||
this.removeOutput(e.detail.index)
|
||||
this.setDirtyCanvas(true, true)
|
||||
}, { signal })
|
||||
|
||||
subgraphEvents.addEventListener("renaming-input", (e) => {
|
||||
|
||||
Reference in New Issue
Block a user