Commit f4b9efff authored by Shpuld Shpludson's avatar Shpuld Shpludson

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
parents 3f4cb1d5 25464899
......@@ -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()
}
})
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment