Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Call widget onRemove to remove element

pythongosssss4d2437e68165
diff --git a/web/scripts/app.js b/web/scripts/app.js
index 601e486e6..180416ef9 100644
--- a/web/scripts/app.js
+++ b/web/scripts/app.js
@@ -544,6 +544,7 @@ export class ComfyApp {
}
if (widgetIdx > -1) {
+ this.widgets[widgetIdx].onRemove?.();
this.widgets.splice(widgetIdx, 1);
}