Skip to content
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.

Commit

Permalink
Add keys to the chips.
Browse files Browse the repository at this point in the history
Fixes #5.
  • Loading branch information
leMaik committed Sep 15, 2016
1 parent 30ed90a commit d047795
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ChipInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ class ChipInput extends React.Component {
<div style={{ marginTop: floatingLabelText ? 12 : 0 }}>
{(this.props.value || this.state.chips).map((tag) => (
<Chip
key={tag}
style={{ margin: '8px 8px 0 0', float: 'left', pointerEvents: disabled ? 'none' : undefined }}
backgroundColor={this.state.focusedChip === tag ? blue300 : null}
onTouchTap={() => { this.setState({ focusedChip: tag }) }}
Expand Down

0 comments on commit d047795

Please sign in to comment.