Verschiedenes seit Freitag #47

Merged
weeman merged 4 commits from freitag into main 2021-10-04 17:42:10 +02:00
Showing only changes of commit c1d78fa8c1 - Show all commits

View File

@ -100,9 +100,9 @@ export default {
},
watch: {
searching(value) {
if (value) {
if (!value) {
if (this.$refs.searchTextInput) {
this.$refs.searchTextInput.focus()
this.focusSearchText()
}
}
}
@ -111,6 +111,11 @@ export default {
handleSubmit() {
this.$router.push({ query: { query: this.searchText }})
this.$store.dispatch('search/search')
},
focusSearchText() {
this.$nextTick(() => {
this.$refs.searchTextInput.focus()
})
}
},
created() {