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 }); };