fix keyboard highlight
This commit is contained in:
parent
0f386ccbc7
commit
1495db084a
2 changed files with 3 additions and 4 deletions
|
@ -184,11 +184,10 @@ const EmojiInput = {
|
|||
if (this.textAtCaret !== textAtCaret) return
|
||||
if (matchedSuggestions.length <= 0) return
|
||||
this.suggestions = take(matchedSuggestions, 5)
|
||||
.map(({ imageUrl, ...rest }, index) => ({
|
||||
.map(({ imageUrl, ...rest }) => ({
|
||||
...rest,
|
||||
// eslint-disable-next-line camelcase
|
||||
img: imageUrl || '',
|
||||
highlighted: index === this.highlighted
|
||||
img: imageUrl || ''
|
||||
}))
|
||||
},
|
||||
suggestions (newValue) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue