mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-06 16:10:09 +00:00
Prune DOM widgets outside of current subgraph
This commit is contained in:
@@ -707,7 +707,7 @@ export class ComfyApp {
|
||||
}
|
||||
|
||||
#addAfterConfigureHandler() {
|
||||
const { canvas, graph } = this
|
||||
const { graph } = this
|
||||
const { onConfigure } = graph
|
||||
graph.onConfigure = function (...args) {
|
||||
fixLinkInputSlots(this)
|
||||
@@ -724,8 +724,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