chore: improve reaction picker behaviour

This commit is contained in:
syuilo
2021-02-28 10:03:52 +09:00
parent af280f52ab
commit cbcbd6f0a9
2 changed files with 10 additions and 1 deletions

View File

@@ -282,6 +282,10 @@ export default defineComponent({
}
},
reset() {
this.$refs.emojis.scrollTop = 0;
},
getKey(emoji: any) {
return typeof emoji === 'string' ? emoji : (emoji.char || `:${emoji.name}:`);
},