diff options
| author | Shpuld Shpuldson <shp@cock.li> | 2020-11-19 11:37:06 +0200 |
|---|---|---|
| committer | Shpuld Shpuldson <shp@cock.li> | 2020-11-19 11:37:06 +0200 |
| commit | 1495db084ae49cc5133678d61e19d90333cbe31d (patch) | |
| tree | 45fb8a4b2a04b1767c371da87fc51fae28fa4075 /src/components/emoji_input/emoji_input.js | |
| parent | 0f386ccbc7115fd1d74615377beca9982dec00bf (diff) | |
fix keyboard highlight
Diffstat (limited to 'src/components/emoji_input/emoji_input.js')
| -rw-r--r-- | src/components/emoji_input/emoji_input.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/emoji_input/emoji_input.js b/src/components/emoji_input/emoji_input.js index 16243a56..d32e19bf 100644 --- a/src/components/emoji_input/emoji_input.js +++ b/src/components/emoji_input/emoji_input.js @@ -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) { |
