Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: fix https://github.com/siyuan-note/siyuan/issues/10457

Vanessa54b01413721a
diff --git a/app/src/util/pathName.ts b/app/src/util/pathName.ts
index 3c1a1593d8..f2b74c9cc7 100644
--- a/app/src/util/pathName.ts
+++ b/app/src/util/pathName.ts
@@ -205,7 +205,9 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void,
}, flashcard);
const inputElement = dialog.element.querySelector(".b3-text-field") as HTMLInputElement;
+ /// #if !MOBILE
inputElement.focus();
+ /// #endif
const inputEvent = (event?: InputEvent) => {
if (event && event.isComposing) {
return;
@@ -469,7 +471,9 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void,
}
target = target.parentElement;
}
+ /// #if !MOBILE
inputElement.focus();
+ /// #endif
});
};