mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-20 22:17:02 +08:00
hide element until it is drawn
This commit is contained in:
parent
160d93b9f6
commit
ba00f00760
@ -209,7 +209,9 @@ LGraphNode.prototype.addDOMWidget = function (name, type, element, options) {
|
||||
if (!element.parentElement) {
|
||||
document.body.append(element);
|
||||
}
|
||||
|
||||
element.hidden = true;
|
||||
element.style.display = "none";
|
||||
|
||||
let mouseDownHandler;
|
||||
if (element.blur) {
|
||||
mouseDownHandler = (event) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user