From 3ed9ce3cb5fbeab3936e844575bec63e551b2b24 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 15 Jan 2016 16:07:59 +0800 Subject: [PATCH] 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 --- components/table/index.jsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/table/index.jsx b/components/table/index.jsx index 4479eb7525..d9cfaa448f 100644 --- a/components/table/index.jsx +++ b/components/table/index.jsx @@ -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) )); -- GitLab