Load emoji properly on first showing
This commit is contained in:
parent
34ae3d45dc
commit
34bcfc5e0b
1 changed files with 9 additions and 1 deletions
|
@ -57,7 +57,8 @@ const EmojiPicker = {
|
|||
customEmojiBufferSlice: LOAD_EMOJI_BY,
|
||||
customEmojiTimeout: null,
|
||||
customEmojiLoadAllConfirmed: false,
|
||||
groupLoadedCount: {}
|
||||
groupLoadedCount: {},
|
||||
firstLoaded: false
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
@ -166,6 +167,13 @@ const EmojiPicker = {
|
|||
}
|
||||
this.$nextTick(() => {
|
||||
this.$refs['emoji-groups'].scrollTop = 0
|
||||
this.$nextTick(() => {
|
||||
if (this.firstLoaded) {
|
||||
return
|
||||
}
|
||||
this.triggerLoadMore(this.$refs['emoji-groups'])
|
||||
this.firstLoaded = true
|
||||
})
|
||||
})
|
||||
const bufferSize = this.customEmojiBuffer.length
|
||||
const bufferPrefilledAll = bufferSize === this.filteredEmoji.length
|
||||
|
|
Loading…
Add table
Reference in a new issue