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.

Fix hiding dom widgets.

shiimizu392878a2621d
diff --git a/web/scripts/domWidget.js b/web/scripts/domWidget.js
index bb4c892b5..eb0742d38 100644
--- a/web/scripts/domWidget.js
+++ b/web/scripts/domWidget.js
@@ -177,7 +177,7 @@ LGraphCanvas.prototype.computeVisibleNodes = function () {
for (const w of node.widgets) {
if (w.element) {
w.element.hidden = hidden;
- w.element.style.display = hidden ? "none" : null;
+ w.element.style.display = hidden ? "none" : undefined;
if (hidden) {
w.options.onHide?.(w);
}