diff --git a/components/table/index.jsx b/components/table/index.jsx index 0bcbcbbaba100e607e129eb9ad68b0f41796a7d3..13dc5c6102f82c03fc1de8cedfc01c8a4b9b9954 100644 --- a/components/table/index.jsx +++ b/components/table/index.jsx @@ -91,18 +91,9 @@ let AntTable = React.createClass({ // 外界只有 dataSource 的变化会触发新请求 if ('dataSource' in nextProps && nextProps.dataSource !== this.props.dataSource) { - let selectedRowKeys = this.state.selectedRowKeys; - // 把不在当前页的选中项去掉 - let currentPageRowKeys = - this.getCurrentPageData(nextProps.dataSource).map( - (record, i) => this.getRecordKey(record, i) - ); - selectedRowKeys = selectedRowKeys.filter((key) => { - return currentPageRowKeys.indexOf(key) >= 0; - }); this.setState({ selectionDirty: false, - selectedRowKeys, + selectedRowKeys: [], }); } },