mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 06:23:34 -07:00
fixed navigate on enter in search
This commit is contained in:
parent
561f586dd1
commit
f471e38d88
1 changed files with 6 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
<div>
|
<div>
|
||||||
<v-autocomplete
|
<v-autocomplete
|
||||||
:items="autoResults"
|
:items="autoResults"
|
||||||
|
v-model="searchSlug"
|
||||||
item-value="item.slug"
|
item-value="item.slug"
|
||||||
item-text="item.name"
|
item-text="item.name"
|
||||||
dense
|
dense
|
||||||
|
@ -52,7 +53,8 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
search: "",
|
searchSlug: "",
|
||||||
|
search: " ",
|
||||||
result: [],
|
result: [],
|
||||||
autoResults: [],
|
autoResults: [],
|
||||||
isDark: false,
|
isDark: false,
|
||||||
|
@ -88,6 +90,9 @@ export default {
|
||||||
this.autoResults = this.result;
|
this.autoResults = this.result;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
searchSlug() {
|
||||||
|
this.selected(this.searchSlug);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getImage(image) {
|
getImage(image) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue