Skip to content
Snippets Groups Projects
Unverified Commit 99a368db authored by tusooa's avatar tusooa :zap:
Browse files

Load emoji properly on first showing

parent ba1b006e
No related branches found
No related tags found
2 merge requests!1711Update stable - 2.5.0 release,!1408Group emojis into packs in emoji picker
......@@ -58,7 +58,8 @@ const EmojiPicker = {
customEmojiBufferSlice: LOAD_EMOJI_BY,
customEmojiTimeout: null,
customEmojiLoadAllConfirmed: false,
groupLoadedCount: {}
groupLoadedCount: {},
firstLoaded: false
}
},
components: {
......@@ -167,6 +168,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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment