mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-06 08:00:05 +00:00
Prune DOM widgets outside of current subgraph
This commit is contained in:
@@ -717,7 +717,7 @@ export class ComfyApp {
|
||||
}
|
||||
|
||||
#addAfterConfigureHandler() {
|
||||
const { canvas, graph } = this
|
||||
const { graph } = this
|
||||
const { onConfigure } = graph
|
||||
graph.onConfigure = function (...args) {
|
||||
fixLinkInputSlots(this)
|
||||
@@ -734,8 +734,10 @@ export class ComfyApp {
|
||||
node.onAfterGraphConfigured?.()
|
||||
}
|
||||
|
||||
const nodes = canvas.subgraph?.nodes ?? graph.nodes
|
||||
pruneWidgets(nodes)
|
||||
graph.canvasAction((c) => {
|
||||
const nodes = c.subgraph?.nodes ?? graph.nodes
|
||||
pruneWidgets(nodes)
|
||||
})
|
||||
|
||||
return r
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user