Vanessa 2024-01-02 12:34:10 +08:00
parent ae2d70f706
commit 594f2935dd
3 changed files with 8 additions and 4 deletions

View file

@ -18,7 +18,7 @@ export class Menu {
}
this.menu.remove();
if (!this.isOpen) {
this.menu.element.setAttribute("data-name", id);
this.menu.element.setAttribute("data-name", id || "");
this.menu.removeCB = closeCB;
}
}