diff --git a/components/table/index.jsx b/components/table/index.jsx index 984f7c8065491a6dca76233b2885a04a7c71f91c..8497c3fb032ea8405ecb159ccb6230e8351b8f22 100644 --- a/components/table/index.jsx +++ b/components/table/index.jsx @@ -111,7 +111,9 @@ let AntTable = React.createClass({ } if (this.props.rowSelection && this.props.rowSelection.onChange) { const data = this.getCurrentPageData(); - const selectedRows = data.filter(row => selectedRowKeys.indexOf(row.key) >= 0); + const selectedRows = data.filter( + (row, i) => selectedRowKeys.indexOf(this.getRecordKey(row, i)) >= 0 + ); this.props.rowSelection.onChange(selectedRowKeys, selectedRows); } },