Call widget onRemove to remove element

This commit is contained in:
pythongosssss 2023-11-23 19:43:55 +00:00
parent a657f96c5c
commit 4d2437e681
1 changed files with 1 additions and 0 deletions

View File

@ -544,6 +544,7 @@ export class ComfyApp {
}
if (widgetIdx > -1) {
this.widgets[widgetIdx].onRemove?.();
this.widgets.splice(widgetIdx, 1);
}