Fix load more emoji action
This commit is contained in:
parent
69b3102fb2
commit
ff2242e85d
2 changed files with 15 additions and 2 deletions
|
|
@ -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)
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue