fix search
This commit is contained in:
@@ -65,7 +65,7 @@
|
|||||||
<input
|
<input
|
||||||
class="w-full border-2 border-gray-300 bg-white h-10 px-5 pr-16 rounded-lg text-sm focus:outline-none"
|
class="w-full border-2 border-gray-300 bg-white h-10 px-5 pr-16 rounded-lg text-sm focus:outline-none"
|
||||||
ref="searchstr"
|
ref="searchstr"
|
||||||
v-on:keyup.enter="search_dict(this.$refs.searchstr.value)"
|
v-on:keyup.enter="search_dict()"
|
||||||
type="search"
|
type="search"
|
||||||
name="search"
|
name="search"
|
||||||
placeholder="Výraz"
|
placeholder="Výraz"
|
||||||
@@ -169,6 +169,7 @@ export default {
|
|||||||
console.log(data.tab)
|
console.log(data.tab)
|
||||||
},
|
},
|
||||||
search_dict(term) {
|
search_dict(term) {
|
||||||
|
if (term == null) term = this.$refs.searchstr.value;
|
||||||
console.log(this.$refs.searchstr.value)
|
console.log(this.$refs.searchstr.value)
|
||||||
console.log('SEARCH')
|
console.log('SEARCH')
|
||||||
var that = this
|
var that = this
|
||||||
|
|||||||
Reference in New Issue
Block a user