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