mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +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
|
||||
this.onRemoved = function (this: LGraphNode) {
|
||||
element.remove()
|
||||
widget.onRemove()
|
||||
elementWidgets.delete(this)
|
||||
onRemoved?.call(this)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user