aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2019-07-31 17:39:35 +0000
committerShpuld Shpludson <shp@cock.li>2019-07-31 17:39:35 +0000
commitf4b9efff7702113a083b5ef42c3fd8fc72ff93b4 (patch)
tree7ee532471eee527094f4ee407fc64f5c57288510 /src
parent3f4cb1d58e2dff2663226f059cfa8abbcc6a2ad2 (diff)
parent254648991d4eb706c09b90f21a2e0616b6aaa976 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/components/search_bar/search_bar.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/search_bar/search_bar.js b/src/components/search_bar/search_bar.js
index b8a792ee..d7d85676 100644
--- a/src/components/search_bar/search_bar.js
+++ b/src/components/search_bar/search_bar.js
@@ -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()
+ }
+ })
}
}
}