Fix hiding dom widgets.

This commit is contained in:
shiimizu 2023-12-25 19:17:40 -08:00
parent 00ec9b03ae
commit 1c6b539236

View File

@ -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);
}