diff --git a/app/src/menus/navigation.ts b/app/src/menus/navigation.ts index bc57463df..2d182146c 100644 --- a/app/src/menus/navigation.ts +++ b/app/src/menus/navigation.ts @@ -722,12 +722,8 @@ export const genImportMenu = (notebookId: string, pathString: string) => { files = (getDockByType("file").data["file"] as Files); /// #endif const liElement = files.element.querySelector(`[data-path="${pathString}"]`); - const toggleElement = liElement.querySelector(".b3-list-item__arrow--open"); - if (toggleElement) { - toggleElement.classList.remove("b3-list-item__arrow--open"); - liElement.nextElementSibling?.remove(); - } - files.getLeaf(liElement, notebookId); + liElement.querySelector(".b3-list-item__toggle").classList.remove("fn__hidden") + files.getLeaf(liElement, notebookId, true); window.siyuan.menus.menu.remove(); }; /// #if !BROWSER