This commit is contained in:
Timothy Jaeryang Baek
2026-04-02 08:57:49 -05:00
parent 0dd9f462ff
commit b89019a8e1
@@ -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}