From 4a8706e69c62d2a0fe76efddc0b0d9c9585ff7e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionu=C8=9B=20Cioc=C3=AErlan?= Date: Thu, 2 Jan 2025 02:35:38 +0200 Subject: [PATCH] fix(web): fix input autofocus applies to tag creation modal, and possibly other places --- .../shared-components/settings/setting-input-field.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/lib/components/shared-components/settings/setting-input-field.svelte b/web/src/lib/components/shared-components/settings/setting-input-field.svelte index a04f521773d58..5ef1a764f7b33 100644 --- a/web/src/lib/components/shared-components/settings/setting-input-field.svelte +++ b/web/src/lib/components/shared-components/settings/setting-input-field.svelte @@ -63,7 +63,7 @@ onMount(() => { if (autofocus) { tick() - .then(() => input?.focus()) + .then(() => setTimeout(() => input?.focus(), 0)) .catch((_) => {}); } });