mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 10:25:16 +00:00
Call widget onRemove to remove element
This commit is contained in:
parent
a657f96c5c
commit
4d2437e681
@ -544,6 +544,7 @@ export class ComfyApp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (widgetIdx > -1) {
|
if (widgetIdx > -1) {
|
||||||
|
this.widgets[widgetIdx].onRemove?.();
|
||||||
this.widgets.splice(widgetIdx, 1);
|
this.widgets.splice(widgetIdx, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user