mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-07 08:27:05 +00:00
refac
This commit is contained in:
parent
0dd9f462ff
commit
b89019a8e1
1 changed files with 10 additions and 6 deletions
|
|
@ -439,12 +439,12 @@
|
|||
|
||||
<DropdownMenu.Root
|
||||
bind:open={show}
|
||||
onOpenChange={async () => {
|
||||
searchValue = '';
|
||||
listScrollTop = 0;
|
||||
window.setTimeout(() => document.getElementById('model-search-input')?.focus(), 0);
|
||||
|
||||
resetView();
|
||||
onOpenChange={(open) => {
|
||||
if (open) {
|
||||
searchValue = '';
|
||||
listScrollTop = 0;
|
||||
resetView();
|
||||
}
|
||||
}}
|
||||
onOpenChangeComplete={(open) => {
|
||||
if (!open) {
|
||||
|
|
@ -494,6 +494,10 @@
|
|||
align={$mobile ? 'center' : 'start'}
|
||||
sideOffset={2}
|
||||
alignOffset={-1}
|
||||
onOpenAutoFocus={(e) => {
|
||||
e.preventDefault();
|
||||
window.setTimeout(() => document.getElementById('model-search-input')?.focus(), 0);
|
||||
}}
|
||||
>
|
||||
{#snippet child({ wrapperProps, props, open })}
|
||||
{#if open}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue