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 ff54ae3 commit 644cad6Copy full SHA for 644cad6
src/components/SearchBox.vue
@@ -98,6 +98,11 @@ async function handleSearch() {
98
isSearching.value = false
99
}
100
101
+
102
+// Function to handle keyboard done/enter
103
+function handleDone(event) {
104
+ event.target.blur()
105
+}
106
</script>
107
108
<template>
@@ -109,6 +114,7 @@ async function handleSearch() {
109
114
placeholder="Search by name (min 3 characters)..."
110
115
class="search-input"
111
116
:disabled="isLoading"
117
+ @keyup.enter="handleDone"
112
118
/>
113
119
<div v-if="isLoading || isSearching" class="loading-spinner"></div>
120
</div>
0 commit comments