Skip to content

Commit abedb86

Browse files
committed
fix page reload when enter pressed in docs searchbar
1 parent 0332da0 commit abedb86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,11 @@
7878
<article class="markdown-body">
7979
<div class="searchCondition">
8080
<div>
81-
<form style="display:flex;">
81+
<form style="display:flex;" v-on:submit.prevent="onSubmit">
8282
<label for="search" style="margin-right: 3px;" >search:</label>
8383
<div style="position: relative;">
8484
<input id="search" placeholder="Search all options" v-model="searchCondition">
85+
<input type="hidden">
8586
<svg style="position: absolute; left: 8px; top: 7px;" class="octicon octicon-search subnav-search-icon" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true">
8687
<path fill-rule="evenodd" d="M15.7 13.3l-3.81-3.83A5.93 5.93 0 0 0 13 6c0-3.31-2.69-6-6-6S1 2.69 1 6s2.69 6 6 6c1.3 0 2.48-.41 3.47-1.11l3.83 3.81c.19.2.45.3.7.3.25 0 .52-.09.7-.3a.996.996 0 0 0 0-1.41v.01zM7 10.7c-2.59 0-4.7-2.11-4.7-4.7 0-2.59 2.11-4.7 4.7-4.7 2.59 0 4.7 2.11 4.7 4.7 0 2.59-2.11 4.7-4.7 4.7z"></path>
8788
</svg>

0 commit comments

Comments
 (0)