hide element until it is drawn

This commit is contained in:
pythongosssss 2024-03-20 19:24:43 +00:00
parent 160d93b9f6
commit ba00f00760

View File

@ -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) => {