diff --git a/packages/core/src/LGraphNode.ts b/packages/core/src/LGraphNode.ts index f248268..a9b64be 100644 --- a/packages/core/src/LGraphNode.ts +++ b/packages/core/src/LGraphNode.ts @@ -235,6 +235,9 @@ export default class LGraphNode { this.widgets?.forEach((w) => { w.onNodeRemoved?.(this); }); + Object.values(this.dom_anchors).forEach((dom) => { + dom?.remove(); + }); }); }