ensure every <li> has a key

release
Nolan Lawson 2019-03-12 23:15:53 -07:00
parent e3c39bd2fa
commit f98526a7ed
2 changed files with 1 additions and 2 deletions

View File

@ -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>
)

View File

@ -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)}