forked from AkkomaGang/akkoma-fe
Merge branch 'focus-on-search-input' into 'develop'
Focus on the search input when the search icon is clicked See merge request pleroma/pleroma-fe!896
This commit is contained in:
commit
f4b9efff77
1 changed files with 5 additions and 0 deletions
|
@ -20,6 +20,11 @@ const SearchBar = {
|
|||
toggleHidden () {
|
||||
this.hidden = !this.hidden
|
||||
this.$emit('toggled', this.hidden)
|
||||
this.$nextTick(() => {
|
||||
if (!this.hidden) {
|
||||
this.$refs.searchInput.focus()
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue