mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 22:59:14 +00:00
[BugFix] Sync dom widget store state on widget remove (#2902)
This commit is contained in:
@@ -299,6 +299,7 @@ export class DOMWidgetImpl<T extends HTMLElement, V extends object | string>
|
||||
document.removeEventListener('mousedown', this.mouseDownHandler)
|
||||
}
|
||||
this.element.remove()
|
||||
useDomWidgetStore().unregisterWidget(this.id)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user