From 00d662c4a0d2a546f0f650d23e15612e6bee15cd Mon Sep 17 00:00:00 2001 From: Dym Sohin Date: Tue, 14 Jul 2020 19:47:02 +0000 Subject: [PATCH] make reactions-search case-insensitive --- src/components/react_button/react_button.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/react_button/react_button.js b/src/components/react_button/react_button.js index f0931446f2..abcf04555c 100644 --- a/src/components/react_button/react_button.js +++ b/src/components/react_button/react_button.js @@ -28,7 +28,10 @@ const ReactButton = { }, emojis () { if (this.filterWord !== '') { - return this.$store.state.instance.emoji.filter(emoji => emoji.displayText.includes(this.filterWord)) + const filterWordLowercase = this.filterWord.toLowerCase() + return this.$store.state.instance.emoji.filter(emoji => + emoji.displayText.toLowerCase().includes(filterWordLowercase) + ) } return this.$store.state.instance.emoji || [] },