From 54b01413721a38fe1a608802ab6e9e68b8957fa2 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 28 Feb 2024 09:44:21 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/10457 --- app/src/util/pathName.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/util/pathName.ts b/app/src/util/pathName.ts index 3c1a1593d..f2b74c9cc 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 }); };