always focus search when opening emoji picker

remove-mods-files
Henry Jameson 2 years ago
parent 11f9a7ba27
commit c1be65332f

@ -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)
}

Loading…
Cancel
Save