forked from AkkomaGang/akkoma-fe
clear filter on reopen, fix error message in console
This commit is contained in:
parent
23137dfd4b
commit
a3501d58d8
1 changed files with 4 additions and 0 deletions
|
@ -72,6 +72,7 @@ const EmojiPicker = {
|
||||||
},
|
},
|
||||||
triggerLoadMore (target) {
|
triggerLoadMore (target) {
|
||||||
const ref = this.$refs['group-end-custom'][0]
|
const ref = this.$refs['group-end-custom'][0]
|
||||||
|
if (!ref) return
|
||||||
const bottom = ref.offsetTop + ref.offsetHeight
|
const bottom = ref.offsetTop + ref.offsetHeight
|
||||||
|
|
||||||
const scrollerBottom = target.scrollTop + target.clientHeight
|
const scrollerBottom = target.scrollTop + target.clientHeight
|
||||||
|
@ -109,6 +110,9 @@ const EmojiPicker = {
|
||||||
this.customEmojiBufferSlice += LOAD_EMOJI_BY
|
this.customEmojiBufferSlice += LOAD_EMOJI_BY
|
||||||
},
|
},
|
||||||
startEmojiLoad (forceUpdate = false) {
|
startEmojiLoad (forceUpdate = false) {
|
||||||
|
if (!forceUpdate) {
|
||||||
|
this.keyword = ''
|
||||||
|
}
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs['emoji-groups'].scrollTop = 0
|
this.$refs['emoji-groups'].scrollTop = 0
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue