Skip to content

Commit

Permalink
🎨 fix #10457
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Feb 28, 2024
1 parent ba6dc2d commit 54b0141
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/util/pathName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -469,7 +471,9 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void,
}
target = target.parentElement;
}
/// #if !MOBILE
inputElement.focus();
/// #endif
});
};

Expand Down

0 comments on commit 54b0141

Please sign in to comment.