Skip to content

Commit

Permalink
fix(antd-components): missing 'key' prop warning when table draggable (
Browse files Browse the repository at this point in the history
…#1011)

修复使用 ArrayTable 且开启 draggable 时,报警告的问题 Each child in a list should have a unique "key" prop. in TableCell (created by TableRow)。
  • Loading branch information
daief authored Sep 9, 2020
1 parent 522e26e commit a69cdad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/antd-components/src/array-table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export const ArrayTable: any = styled(
if (draggable) {
columns.unshift({
width: 20,
key: 'dragHandler',
render: () => {
return <DragHandler className="drag-handler" />
}
Expand Down

0 comments on commit a69cdad

Please sign in to comment.