Skip to content

Commit

Permalink
ensure every <li> has a key
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson committed Mar 13, 2019
1 parent e3c39bd commit f98526a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/category.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export default class Category extends React.Component {
<ul className="emoji-mart-category-list">
{emojis &&
emojis.map((emoji) => (
<li>
<li key={emoji.id || emoji}>
{NimbleEmoji({ emoji: emoji, data: this.data, ...emojiProps })}
</li>
)
Expand Down
1 change: 0 additions & 1 deletion src/components/emoji/nimble-emoji.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ const NimbleEmoji = (props) => {
} else {
return (
<button
key={props.emoji.id || props.emoji}
onClick={(e) => _handleClick(e, props)}
onMouseEnter={(e) => _handleOver(e, props)}
onMouseLeave={(e) => _handleLeave(e, props)}
Expand Down

0 comments on commit f98526a

Please sign in to comment.