From e615d40ca153226a8cf0025f588602c0f1d78b1c Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Fri, 27 Jan 2023 23:33:27 -0500 Subject: [PATCH] Fix UI annoyance with multiline textboxes sometimes getting stuck. --- webshit/index.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/webshit/index.html b/webshit/index.html index 58f2c52..b06e208 100644 --- a/webshit/index.html +++ b/webshit/index.html @@ -212,6 +212,17 @@ function onObjectInfo(json) { ccc.parentNode.appendChild(w.input_div); w = this.addCustomWidget(w); + canvas.onDrawBackground = function() { + for (let n in graph._nodes) { + n = graph._nodes[n]; + for (let w in n.widgets) { + let wid = n.widgets[w]; + if (Object.hasOwn(wid, 'input_div')) { + wid.input_div.hidden = true; + } + } + } + } // w = this.addWidget("text", x, "", function(v){}, { multiline:true } ); console.log(w, this); this._widgets += [w]