mirror of
https://github.com/thelounge/thelounge
synced 2024-11-14 00:07:17 +00:00
Autofocus search input in case no query is present
This commit is contained in:
parent
24a738d521
commit
cadcc4b97c
1 changed files with 4 additions and 0 deletions
|
@ -104,6 +104,10 @@ export default {
|
|||
mounted() {
|
||||
this.searchInput = this.$route.query.q;
|
||||
this.searchOpened = this.onSearchPage;
|
||||
|
||||
if (!this.searchInput) {
|
||||
this.$refs.searchInputField.focus();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
closeSearch() {
|
||||
|
|
Loading…
Reference in a new issue