Skip to content

Commit

Permalink
Merge pull request #22928 from AmjedNazzal/Issue21217
Browse files Browse the repository at this point in the history
Fix - Cursor position and hover effect on emoji picker doesn't match #21217
  • Loading branch information
marcochavezf authored Jul 18, 2023
2 parents 4e49206 + 272c87a commit 6197c8e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/EmojiPicker/EmojiPickerMenu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,11 @@ class EmojiPickerMenu extends Component {
* Return a unique key for each emoji item
*
* @param {Object} item
* @param {Number} index
* @returns {String}
*/
keyExtractor(item) {
return `emoji_picker_${item.code}`;
keyExtractor(item, index) {
return `emoji_picker_${item.code}_${index}`;
}

/**
Expand Down

0 comments on commit 6197c8e

Please sign in to comment.