Skip to content

Commit

Permalink
Reset hover state to selected emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinsonijs committed Feb 28, 2023
1 parent 7137be7 commit 1fe2268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/EmojiPicker/EmojiSkinToneList.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class EmojiSkinToneList extends Component {
<EmojiPickerMenuItem
onPress={() => this.updateSelectedSkinTone(skinToneEmoji)}
onHoverIn={() => this.setState({highlightedIndex: skinToneEmoji.skinTone})}
onHoverOut={() => this.setState({highlightedIndex: -1})}
onHoverOut={() => this.setState({highlightedIndex: selectedEmoji.skinTone})}
key={skinToneEmoji.code}
emoji={skinToneEmoji.code}
isHighlighted={skinToneEmoji.skinTone === this.state.highlightedIndex || skinToneEmoji.skinTone === selectedEmoji.skinTone}
Expand Down

0 comments on commit 1fe2268

Please sign in to comment.