mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 19:21:54 +00:00
[Bug] Fix widget remove when node is deleted (#2918)
This commit is contained in:
@@ -360,7 +360,7 @@ LGraphNode.prototype.addDOMWidget = function <
|
|||||||
|
|
||||||
const onRemoved = this.onRemoved
|
const onRemoved = this.onRemoved
|
||||||
this.onRemoved = function (this: LGraphNode) {
|
this.onRemoved = function (this: LGraphNode) {
|
||||||
element.remove()
|
widget.onRemove()
|
||||||
elementWidgets.delete(this)
|
elementWidgets.delete(this)
|
||||||
onRemoved?.call(this)
|
onRemoved?.call(this)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user