mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-27 07:39:20 -05:00
fix: the tag box keeps the cursor after a tag is added or changed (#34410)
This commit is contained in:
1 file changed
+2
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user