Merge branch 'emoji-popovers' into shigusegubu-vue3

* emoji-popovers:
  always focus search when opening emoji picker
This commit is contained in:
Henry Jameson 2022-11-01 23:25:58 +02:00
commit ddd6c9345e

View file

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