Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix: assistant tool selector on safari + correct tab nav
Browse files
src/lib/components/AssistantToolPicker.svelte
CHANGED
@@ -115,10 +115,12 @@
|
|
115 |
class:opacity-50={selectedValues.length >= maxValues}
|
116 |
class:bg-gray-100={selectedValues.length >= maxValues}
|
117 |
placeholder="Type to search tools..."
|
|
|
118 |
/>
|
119 |
{#if suggestions.length > 0}
|
120 |
<div
|
121 |
class="invisible absolute z-10 mt-1 w-full rounded border border-gray-300 bg-white shadow-lg group-focus-within:visible"
|
|
|
122 |
>
|
123 |
{#if inputValue === ""}
|
124 |
<p class="px-3 py-2 text-left text-xs text-gray-500">
|
@@ -133,6 +135,7 @@
|
|
133 |
addValue(suggestion);
|
134 |
}}
|
135 |
class="w-full cursor-pointer px-3 py-2 text-left hover:bg-blue-500 hover:text-white"
|
|
|
136 |
>
|
137 |
{suggestion.displayName}
|
138 |
{#if suggestion.createdByName}
|
|
|
115 |
class:opacity-50={selectedValues.length >= maxValues}
|
116 |
class:bg-gray-100={selectedValues.length >= maxValues}
|
117 |
placeholder="Type to search tools..."
|
118 |
+
tabindex="0"
|
119 |
/>
|
120 |
{#if suggestions.length > 0}
|
121 |
<div
|
122 |
class="invisible absolute z-10 mt-1 w-full rounded border border-gray-300 bg-white shadow-lg group-focus-within:visible"
|
123 |
+
tabindex="-1"
|
124 |
>
|
125 |
{#if inputValue === ""}
|
126 |
<p class="px-3 py-2 text-left text-xs text-gray-500">
|
|
|
135 |
addValue(suggestion);
|
136 |
}}
|
137 |
class="w-full cursor-pointer px-3 py-2 text-left hover:bg-blue-500 hover:text-white"
|
138 |
+
tabindex="0"
|
139 |
>
|
140 |
{suggestion.displayName}
|
141 |
{#if suggestion.createdByName}
|