mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
✅ fix key warning in tabs demo
This commit is contained in:
parent
860809f173
commit
d1650e31e9
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user