mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
Do not empty selection when change dataSource now
eh... empty behavious will trigger a infinite loop when sapecify immutable dataSource You need to empty manully when change data or current page
This commit is contained in:
parent
06abba27a9
commit
3ed9ce3cb5
@ -93,7 +93,6 @@ let AntTable = React.createClass({
|
||||
this.setState({
|
||||
selectionDirty: false,
|
||||
});
|
||||
this.setSelectedRowKeys([]);
|
||||
}
|
||||
if (nextProps.rowSelection &&
|
||||
'selectedRowKeys' in nextProps.rowSelection) {
|
||||
@ -270,7 +269,6 @@ let AntTable = React.createClass({
|
||||
pagination
|
||||
};
|
||||
this.setState(newState);
|
||||
this.setSelectedRowKeys([]);
|
||||
this.props.onChange.apply(this, this.prepareParamsArguments(
|
||||
objectAssign({}, this.state, newState)
|
||||
));
|
||||
|
Loading…
Reference in New Issue
Block a user