Fix load more emoji action

This commit is contained in:
Tusooa Zhu 2021-08-14 21:23:45 -04:00
commit ff2242e85d
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
2 changed files with 15 additions and 2 deletions

View file

@ -98,7 +98,7 @@ const EmojiPicker = {
}
},
triggerLoadMore (target) {
const ref = this.$refs['group-end-custom']
const ref = this.$refs[`group-end-${this.lastNonUnicodeGroupId}`][0]
if (!ref) return
const bottom = ref.offsetTop + ref.offsetHeight
@ -217,6 +217,9 @@ const EmojiPicker = {
}
]
},
lastNonUnicodeGroupId () {
return this.emojis[this.emojis.length - 2].id
},
emojisView () {
return this.emojis.filter(value => value.emojis.length > 0)
},