logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe
commit: f4b9efff7702113a083b5ef42c3fd8fc72ff93b4
parent: 3f4cb1d58e2dff2663226f059cfa8abbcc6a2ad2
Author: Shpuld Shpludson <shp@cock.li>
Date:   Wed, 31 Jul 2019 17:39:35 +0000

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:

Msrc/components/search_bar/search_bar.js5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git 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() + } + }) } } }