提交 3ed9ce3c 编写于 作者: A afc163

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
上级 06abba27
...@@ -93,7 +93,6 @@ let AntTable = React.createClass({ ...@@ -93,7 +93,6 @@ let AntTable = React.createClass({
this.setState({ this.setState({
selectionDirty: false, selectionDirty: false,
}); });
this.setSelectedRowKeys([]);
} }
if (nextProps.rowSelection && if (nextProps.rowSelection &&
'selectedRowKeys' in nextProps.rowSelection) { 'selectedRowKeys' in nextProps.rowSelection) {
...@@ -270,7 +269,6 @@ let AntTable = React.createClass({ ...@@ -270,7 +269,6 @@ let AntTable = React.createClass({
pagination pagination
}; };
this.setState(newState); this.setState(newState);
this.setSelectedRowKeys([]);
this.props.onChange.apply(this, this.prepareParamsArguments( this.props.onChange.apply(this, this.prepareParamsArguments(
objectAssign({}, this.state, newState) objectAssign({}, this.state, newState)
)); ));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册