|
|
@ -184,11 +184,10 @@ const EmojiInput = {
|
|
|
|
if (this.textAtCaret !== textAtCaret) return
|
|
|
|
if (this.textAtCaret !== textAtCaret) return
|
|
|
|
if (matchedSuggestions.length <= 0) return
|
|
|
|
if (matchedSuggestions.length <= 0) return
|
|
|
|
this.suggestions = take(matchedSuggestions, 5)
|
|
|
|
this.suggestions = take(matchedSuggestions, 5)
|
|
|
|
.map(({ imageUrl, ...rest }, index) => ({
|
|
|
|
.map(({ imageUrl, ...rest }) => ({
|
|
|
|
...rest,
|
|
|
|
...rest,
|
|
|
|
// eslint-disable-next-line camelcase
|
|
|
|
// eslint-disable-next-line camelcase
|
|
|
|
img: imageUrl || '',
|
|
|
|
img: imageUrl || ''
|
|
|
|
highlighted: index === this.highlighted
|
|
|
|
|
|
|
|
}))
|
|
|
|
}))
|
|
|
|
},
|
|
|
|
},
|
|
|
|
suggestions (newValue) {
|
|
|
|
suggestions (newValue) {
|
|
|
|