fix search

This commit is contained in:
2022-03-15 19:15:28 +01:00
parent dd0ad5bc7f
commit 7d882ee1ab

View File

@@ -65,7 +65,7 @@
<input
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"
v-on:keyup.enter="search_dict(this.$refs.searchstr.value)"
v-on:keyup.enter="search_dict()"
type="search"
name="search"
placeholder="Výraz"
@@ -169,6 +169,7 @@ export default {
console.log(data.tab)
},
search_dict(term) {
if (term == null) term = this.$refs.searchstr.value;
console.log(this.$refs.searchstr.value)
console.log('SEARCH')
var that = this