speed up emoji picker somewhat

This commit is contained in:
Henry Jameson 2024-08-13 23:54:18 +03:00
parent c4352a1936
commit 99490cdb21
3 changed files with 6 additions and 1 deletions

View file

@ -150,7 +150,9 @@ const EmojiPicker = {
},
showPicker () {
this.$refs.popover.showPopover()
this.onShowing()
this.$nextTick(() => {
this.onShowing()
})
},
hidePicker () {
this.$refs.popover.hidePopover()

View file

@ -89,6 +89,7 @@
class="emoji-groups"
:class="groupsScrolledClass"
:min-item-size="minItemSize"
:buffer="minItemSize"
:items="emojiItems"
:emit-update="true"
@update="onScroll"

View file

@ -374,6 +374,8 @@ const instance = {
// should have been "pack" field, that would be more useful
}).sort(byPackThenByName)
commit('setInstanceOption', { name: 'customEmoji', value: emoji })
state.standardEmojiGroupList = null
state.standardEmojiList = null
} else {
throw (res)
}