mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 20:57:13 -05:00
Fix focused field not being preserved
This commit is contained in:
parent
783a6d1fa2
commit
f9607ce8af
1 changed files with 3 additions and 0 deletions
|
|
@ -1200,6 +1200,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
if(args.initial) {
|
if(args.initial) {
|
||||||
initialLoadArgs = args;
|
initialLoadArgs = args;
|
||||||
}
|
}
|
||||||
|
if(typeof args.focusTo === "undefined") {
|
||||||
|
args.focusTo = focusedFieldIndex;
|
||||||
|
}
|
||||||
loadDebouncer.schedule(async () => {
|
loadDebouncer.schedule(async () => {
|
||||||
await loadNoteInner(initialLoadArgs ? {
|
await loadNoteInner(initialLoadArgs ? {
|
||||||
...initialLoadArgs,
|
...initialLoadArgs,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue