logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: c1be65332f4105c172550308a36445166077b47e
parent 11f9a7ba2719ff4ddb84be39d9e83519c1d0f534
Author: Henry Jameson <me@hjkos.com>
Date:   Tue,  1 Nov 2022 23:25:34 +0200

always focus search when opening emoji picker

Diffstat:

Msrc/components/emoji_picker/emoji_picker.js4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/components/emoji_picker/emoji_picker.js b/src/components/emoji_picker/emoji_picker.js @@ -240,12 +240,14 @@ const EmojiPicker = { }, onShowing () { const oldContentLoaded = this.contentLoaded + this.$nextTick(() => { + this.$refs.search.focus() + }) this.contentLoaded = true this.waitForDomAndInitializeLazyLoad() this.filteredEmojiGroups = this.getFilteredEmojiGroups() if (!oldContentLoaded) { this.$nextTick(() => { - this.$refs.search.focus() if (this.defaultGroup) { this.highlight(this.defaultGroup) }