Skip to content

Commit

Permalink
Merge pull request #15552 from jatinsonijs/fix-two-skin-highlighted
Browse files Browse the repository at this point in the history
Reset hover state to selected emoji
  • Loading branch information
stitesExpensify authored Mar 6, 2023
2 parents 2c23614 + 1fe2268 commit 6413a79
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 6413a79

Please sign in to comment.