Skip to content

Commit 2ccbb5a

Browse files
committed
Ignore Enter key when converting text (for Japanese characters)
See vuejs/vuepress#2851
1 parent 610de90 commit 2ccbb5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/SearchBox.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<template>
22
<div class="search-box">
3+
<form @submit.prevent="go(focusIndex)">
34
<input
45
ref="input"
56
aria-label="Search"
@@ -11,10 +12,10 @@
1112
@input="query = $event.target.value"
1213
@focus="focused = true"
1314
@blur="focused = false"
14-
@keyup.enter="go(focusIndex)"
1515
@keyup.up="onUp"
1616
@keyup.down="onDown"
1717
/>
18+
</form>
1819
<ul v-if="showSuggestions" class="suggestions" :class="{ 'align-right': alignRight }" @mouseleave="unfocus">
1920
<li
2021
v-for="(s, i) in suggestions"

0 commit comments

Comments
 (0)