mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -59,6 +59,8 @@ export class Dialog {
|
||||
|
||||
public destroy() {
|
||||
this.element.remove();
|
||||
// https://github.com/siyuan-note/siyuan/issues/6783
|
||||
window.siyuan.menus.menu.remove();
|
||||
if (this.destroyCallback) {
|
||||
this.destroyCallback();
|
||||
}
|
||||
|
||||
@@ -91,7 +91,6 @@ 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);
|
||||
|
||||
Reference in New Issue
Block a user