Fix dom widgets not being hidden

This commit is contained in:
pythongosssss 2023-12-19 20:22:01 +00:00
parent 9a7619b72d
commit e65110fd93
1 changed files with 1 additions and 0 deletions

View File

@ -177,6 +177,7 @@ LGraphCanvas.prototype.computeVisibleNodes = function () {
for (const w of node.widgets) { for (const w of node.widgets) {
if (w.element) { if (w.element) {
w.element.hidden = hidden; w.element.hidden = hidden;
w.element.style.display = hidden ? "none" : null;
if (hidden) { if (hidden) {
w.options.onHide?.(w); w.options.onHide?.(w);
} }