fix: the tag box keeps the cursor after a tag is added or changed (#34410)

This commit is contained in:
G30 authored and GitHub committed 2026-11-14 14:28:53 +09:00
1 parent d7b3d08b4f
commit fbbe2f8f3e
1 file changed
+2 -1
+2 -1
View File
@@ -1,5 +1,5 @@
<script lang="ts">
import { getContext, onMount } from 'svelte';
import { getContext, onMount, tick } from 'svelte';
import { toast } from 'svelte-sonner';
import { tags as userTags } from '$lib/stores';
import {
@@ -56,6 +56,7 @@
toast.error(String(error));
} finally {
busy = false;
await tick();
input?.focus();
}
}