Fix activeName updating wrongly when selecting previous tag from invalid tag (#1851)

This commit is contained in:
Henrik Giesel 2022-05-10 03:45:41 +02:00 committed by GitHub
parent 45b12ca104
commit 96d9539b9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -220,6 +220,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
activeAfterBlur = index - 1;
active = null;
activeInput.blur();
}
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;
active = null;
activeInput.blur();
await tick();
activeInput.setSelectionRange(0, 0);