We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 610de90 commit 2ccbb5aCopy full SHA for 2ccbb5a
components/SearchBox.vue
@@ -1,5 +1,6 @@
1
<template>
2
<div class="search-box">
3
+ <form @submit.prevent="go(focusIndex)">
4
<input
5
ref="input"
6
aria-label="Search"
@@ -11,10 +12,10 @@
11
12
@input="query = $event.target.value"
13
@focus="focused = true"
14
@blur="focused = false"
- @keyup.enter="go(focusIndex)"
15
@keyup.up="onUp"
16
@keyup.down="onDown"
17
/>
18
+ </form>
19
<ul v-if="showSuggestions" class="suggestions" :class="{ 'align-right': alignRight }" @mouseleave="unfocus">
20
<li
21
v-for="(s, i) in suggestions"
0 commit comments