From 09bcb6a5b176a9451d842a32dae64a214aa5ce8c Mon Sep 17 00:00:00 2001 From: Tusooa Zhu Date: Mon, 20 Jun 2022 08:50:32 -0400 Subject: [PATCH] Use trimmed keyword for filtering emojis --- src/components/emoji_picker/emoji_picker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/emoji_picker/emoji_picker.js b/src/components/emoji_picker/emoji_picker.js index 677ef5e4..3cb6f76d 100644 --- a/src/components/emoji_picker/emoji_picker.js +++ b/src/components/emoji_picker/emoji_picker.js @@ -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) },