focus the search

This commit is contained in:
Core 2022-05-19 11:40:33 +01:00
parent 474208434d
commit e4082f2599
2 changed files with 9 additions and 2 deletions

View file

@ -2165,6 +2165,13 @@ const app = new Vue({
sortArtists()
}
},
focusSearch() {
app.appRoute('search')
const search = document.getElementsByClassName("search-input")
if (search.length > 0) {
search[0].focus()
}
},
getSidebarItemClass(page) {
if (this.page == page) {
return ["active"]