This commit is contained in:
Vanessa 2022-12-05 12:51:00 +08:00
parent 0428d050d0
commit 4362df77ba
2 changed files with 3 additions and 0 deletions

View file

@ -53,6 +53,8 @@ export class Dialog {
this.element.classList.add("b3-dialog--open");
});
}
// https://github.com/siyuan-note/siyuan/issues/6783
window.siyuan.menus.menu.remove();
}
public destroy() {

View file

@ -91,6 +91,7 @@ export const openSearch = async (hotkey: string, key?: string, notebookId?: stri
if (edit) {
edit.destroy();
}
window.siyuan.menus.menu.remove();
}
});
dialog.element.setAttribute("data-key", hotkey);