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