We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83e1db6 commit 7f0291cCopy full SHA for 7f0291c
app/components/Compare/PackageSelector.vue
@@ -92,10 +92,17 @@ function handleKeydown(e: KeyboardEvent) {
92
}
93
94
95
+const { start, stop } = useTimeoutFn(() => {
96
+ isInputFocused.value = false
97
+}, 200)
98
+
99
function handleBlur() {
- useTimeoutFn(() => {
- isInputFocused.value = false
- }, 200)
100
+ start()
101
+}
102
103
+function handleFocus() {
104
+ stop()
105
+ isInputFocused.value = true
106
107
</script>
108
@@ -151,7 +158,7 @@ function handleBlur() {
151
158
size="medium"
152
159
class="w-full min-w-25 ps-7"
153
160
aria-autocomplete="list"
154
- @focus="isInputFocused = true"
161
+ @focus="handleFocus"
155
162
@blur="handleBlur"
156
163
@keydown="handleKeydown"
157
164
/>
0 commit comments