Skip to content

Commit

Permalink
✅ fix key warning in tabs demo
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Dec 13, 2018
1 parent 860809f commit d1650e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/tabs/demo/nest.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ class Demo extends React.Component {
<div>
<Select style={{ width: 200 }} onChange={(val) => { this.setState({ parentPos: val }); }}>
{positionList.map(pos => (
<Option value={pos}>Parent - {pos}</Option>
<Option key={pos} value={pos}>Parent - {pos}</Option>
))}
</Select>

<Select style={{ width: 200 }} onChange={(val) => { this.setState({ childPos: val }); }}>
{positionList.map(pos => (
<Option value={pos}>Child - {pos}</Option>
<Option key={pos} value={pos}>Child - {pos}</Option>
))}
</Select>

Expand Down

0 comments on commit d1650e3

Please sign in to comment.