mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
fix: Space item duplicate key (#22745)
This commit is contained in:
parent
40eae38563
commit
0f2f270f35
@ -47,7 +47,8 @@ const Space: React.FC<SpaceProps> = props => {
|
||||
{items.map((child, i) => (
|
||||
<div
|
||||
className={itemClassName}
|
||||
key={`${itemClassName}-i`}
|
||||
// eslint-disable-next-line react/no-array-index-key
|
||||
key={`${itemClassName}-${i}`}
|
||||
style={
|
||||
i === len - 1
|
||||
? {}
|
||||
|
Loading…
Reference in New Issue
Block a user