prevents seafch form submit
This commit is contained in:
parent
a47a9918e7
commit
7d17737569
|
@ -7,23 +7,23 @@ This file is part of ArciveList.
|
||||||
|
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<nav class="">
|
||||||
<form class="search" action="">
|
<form class="search"
|
||||||
<div class="input-group">
|
v-on:submit.prevent="search">
|
||||||
<input type="text"
|
<div class="input-group">
|
||||||
name="fulltext_search"
|
<input type="text"
|
||||||
placeholder="Search"
|
name="fulltext_search"
|
||||||
aria-label="Search"
|
placeholder="Search"
|
||||||
v-model="search_text"
|
aria-label="Search"
|
||||||
class="input-group-fieldbutton hollow" />
|
v-model="search_text"
|
||||||
<button class="appear button"
|
class="input-group-fieldbutton hollow" />
|
||||||
type="button"
|
<button class="appear button"
|
||||||
@click="search">
|
type="submit">
|
||||||
Search
|
Search
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
</nav>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
|
@ -66,7 +66,6 @@ export default {
|
||||||
console.log(this.search_text)
|
console.log(this.search_text)
|
||||||
this.setSearchText(this.search_text)
|
this.setSearchText(this.search_text)
|
||||||
var search_url = this.api_endpoint + this.search_text;
|
var search_url = this.api_endpoint + this.search_text;
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
axios.get(search_url, {
|
axios.get(search_url, {
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue