Use trimmed keyword for filtering emojis
This commit is contained in:
parent
0fd0d6c4c2
commit
09bcb6a5b1
|
@ -270,7 +270,7 @@ const EmojiPicker = {
|
||||||
return this.allEmojiGroups
|
return this.allEmojiGroups
|
||||||
.map(group => ({
|
.map(group => ({
|
||||||
...group,
|
...group,
|
||||||
emojis: filterByKeyword(group.emojis, this.keyword)
|
emojis: filterByKeyword(group.emojis, trim(this.keyword))
|
||||||
}))
|
}))
|
||||||
.filter(group => group.emojis.length > 0)
|
.filter(group => group.emojis.length > 0)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue