From 96d9539b9ddc8da97f5cc798264c5c506995e234 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Tue, 10 May 2022 03:45:41 +0200 Subject: [PATCH] Fix activeName updating wrongly when selecting previous tag from invalid tag (#1851) --- ts/editor/tag-editor/TagEditor.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ts/editor/tag-editor/TagEditor.svelte b/ts/editor/tag-editor/TagEditor.svelte index 8f41b753d..2fabe8bb1 100644 --- a/ts/editor/tag-editor/TagEditor.svelte +++ b/ts/editor/tag-editor/TagEditor.svelte @@ -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 { @@ -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);