diff --git a/app/src/dialog/index.ts b/app/src/dialog/index.ts index 59ca05f1c..98d604f4d 100644 --- a/app/src/dialog/index.ts +++ b/app/src/dialog/index.ts @@ -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(); } diff --git a/app/src/search/spread.ts b/app/src/search/spread.ts index 6aaeaf36e..8bb3fe881 100644 --- a/app/src/search/spread.ts +++ b/app/src/search/spread.ts @@ -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);