mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 00:12:25 -04:00
Fix activeName updating wrongly when selecting previous tag from invalid tag (#1851)
This commit is contained in:
parent
45b12ca104
commit
96d9539b9d
1 changed files with 2 additions and 0 deletions
|
@ -220,6 +220,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
activeAfterBlur = index - 1;
|
activeAfterBlur = index - 1;
|
||||||
active = null;
|
active = null;
|
||||||
|
activeInput.blur();
|
||||||
}
|
}
|
||||||
|
|
||||||
async function moveToNextTag(index: number): Promise<void> {
|
async function moveToNextTag(index: number): Promise<void> {
|
||||||
|
@ -233,6 +234,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
activeAfterBlur = index + 1;
|
activeAfterBlur = index + 1;
|
||||||
active = null;
|
active = null;
|
||||||
|
activeInput.blur();
|
||||||
|
|
||||||
await tick();
|
await tick();
|
||||||
activeInput.setSelectionRange(0, 0);
|
activeInput.setSelectionRange(0, 0);
|
||||||
|
|
Loading…
Reference in a new issue