Use trimmed keyword for filtering emojis

This commit is contained in:
Tusooa Zhu 2022-06-20 08:50:32 -04:00
parent 0fd0d6c4c2
commit 09bcb6a5b1
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ const EmojiPicker = {
return this.allEmojiGroups
.map(group => ({
...group,
emojis: filterByKeyword(group.emojis, this.keyword)
emojis: filterByKeyword(group.emojis, trim(this.keyword))
}))
.filter(group => group.emojis.length > 0)
},