From 13ebd2d76de00b98f44eb181bb03ad0e4a5689f4 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 14 Sep 2015 13:38:19 +0800 Subject: [PATCH] Fix pagination in table --- components/table/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/table/index.jsx b/components/table/index.jsx index 4eca30ae52..90d37f574e 100644 --- a/components/table/index.jsx +++ b/components/table/index.jsx @@ -77,11 +77,11 @@ let AntTable = React.createClass({ // 外界只有 dataSource 的变化会触发新请求 if ('dataSource' in nextProps && nextProps.dataSource !== this.props.dataSource) { - newState = { + newState = objectAssign(newState, { selectedRowKeys: [], dataSource: nextProps.dataSource, loading: true - }; + }); } if (nextProps.columns !== this.props.columns) { newState.filters = {};