Skip to content

Commit d86e204

Browse files
committed
Update ChatInput.svelte
1 parent 969f4fe commit d86e204

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/lib/components/chat/ChatInput.svelte

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@
257257
side="top"
258258
sideOffset={8}
259259
align="start"
260+
trapFocus={false}
261+
onCloseAutoFocus={(e) => e.preventDefault()}
262+
interactOutsideBehavior="defer-otherwise-close"
260263
>
261264
{#if modelIsMultimodal}
262265
<DropdownMenu.Item
@@ -283,6 +286,9 @@
283286
<DropdownMenu.SubContent
284287
class="z-50 rounded-xl border border-gray-200 bg-white/95 p-1 text-gray-800 shadow-lg backdrop-blur dark:border-gray-700/60 dark:bg-gray-800/95 dark:text-gray-100"
285288
sideOffset={10}
289+
trapFocus={false}
290+
onCloseAutoFocus={(e) => e.preventDefault()}
291+
interactOutsideBehavior="defer-otherwise-close"
286292
>
287293
<DropdownMenu.Item
288294
class="flex h-8 select-none items-center gap-1 rounded-md px-2 text-sm text-gray-700 data-[highlighted]:bg-gray-100 focus-visible:outline-none dark:text-gray-200 dark:data-[highlighted]:bg-white/10"
@@ -317,6 +323,9 @@
317323
<DropdownMenu.SubContent
318324
class="z-50 rounded-xl border border-gray-200 bg-white/95 p-1 text-gray-800 shadow-lg backdrop-blur dark:border-gray-700/60 dark:bg-gray-800/95 dark:text-gray-100"
319325
sideOffset={10}
326+
trapFocus={false}
327+
onCloseAutoFocus={(e) => e.preventDefault()}
328+
interactOutsideBehavior="defer-otherwise-close"
320329
>
321330
{#each $allMcpServers as server (server.id)}
322331
<DropdownMenu.CheckboxItem

0 commit comments

Comments
 (0)