|
@@ -1,6 +1,7 @@
|
|
import Popover from '../popover/popover.vue'
|
|
import Popover from '../popover/popover.vue'
|
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
|
import { faSmileBeam } from '@fortawesome/free-regular-svg-icons'
|
|
import { faSmileBeam } from '@fortawesome/free-regular-svg-icons'
|
|
|
|
+import { trim } from 'lodash'
|
|
|
|
|
|
library.add(faSmileBeam)
|
|
library.add(faSmileBeam)
|
|
|
|
|
|
@@ -43,7 +44,7 @@ const ReactButton = {
|
|
},
|
|
},
|
|
emojis () {
|
|
emojis () {
|
|
if (this.filterWord !== '') {
|
|
if (this.filterWord !== '') {
|
|
- const filterWordLowercase = this.filterWord.toLowerCase()
|
|
|
|
|
|
+ const filterWordLowercase = trim(this.filterWord.toLowerCase())
|
|
let orderedEmojiList = []
|
|
let orderedEmojiList = []
|
|
for (const emoji of this.$store.state.instance.emoji) {
|
|
for (const emoji of this.$store.state.instance.emoji) {
|
|
if (emoji.replacement === this.filterWord) return [emoji]
|
|
if (emoji.replacement === this.filterWord) return [emoji]
|