From 87cbcf092488277994a992003c07be7adde3bc66 Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Sat, 30 Nov 2024 17:03:29 +0000 Subject: [PATCH] Fix hideAdd does not prevent adding by keyboard on TagsPopup Signed-off-by: Andre Henriques --- plugins/tags-resources/src/components/TagsPopup.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tags-resources/src/components/TagsPopup.svelte b/plugins/tags-resources/src/components/TagsPopup.svelte index 7c7718f8db6..517413896db 100644 --- a/plugins/tags-resources/src/components/TagsPopup.svelte +++ b/plugins/tags-resources/src/components/TagsPopup.svelte @@ -126,7 +126,7 @@ async function onSearchKeydown (ev: KeyboardEvent): Promise { if (ev.code !== 'Enter') return - if (!inProcess && objects.length < 1) { + if (!inProcess && !hideAdd && objects.length < 1) { inProcess = true await createTagElementQuick() ev.preventDefault()