Skip to content
Snippets Groups Projects
Commit a3501d58 authored by HJ's avatar HJ :fire:
Browse files

clear filter on reopen, fix error message in console

parent 23137dfd
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,7 @@ const EmojiPicker = {
},
triggerLoadMore (target) {
const ref = this.$refs['group-end-custom'][0]
if (!ref) return
const bottom = ref.offsetTop + ref.offsetHeight
const scrollerBottom = target.scrollTop + target.clientHeight
......@@ -109,6 +110,9 @@ const EmojiPicker = {
this.customEmojiBufferSlice += LOAD_EMOJI_BY
},
startEmojiLoad (forceUpdate = false) {
if (!forceUpdate) {
this.keyword = ''
}
this.$nextTick(() => {
this.$refs['emoji-groups'].scrollTop = 0
})
......
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