From 0a1d3bdd3be68d61704e38421159da2eef15ea55 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 16 Mar 2016 16:35:41 +0800 Subject: [PATCH] fix onChange argument --- components/table/index.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/table/index.jsx b/components/table/index.jsx index 8497c3fb03..3ac97294df 100644 --- a/components/table/index.jsx +++ b/components/table/index.jsx @@ -154,7 +154,7 @@ let AntTable = React.createClass({ sorter, }; this.setState(newState); - this.props.onChange(this.prepareParamsArguments({ ...this.state, ...newState })); + this.props.onChange(...this.prepareParamsArguments({ ...this.state, ...newState })); }, handleFilter(column, nextFilters) { @@ -174,7 +174,7 @@ let AntTable = React.createClass({ }; this.setState(newState); this.setSelectedRowKeys([]); - this.props.onChange(this.prepareParamsArguments({ ...this.state, ...newState })); + this.props.onChange(...this.prepareParamsArguments({ ...this.state, ...newState })); }, handleSelect(record, rowIndex, e) { @@ -276,7 +276,7 @@ let AntTable = React.createClass({ pagination }; this.setState(newState); - this.props.onChange(this.prepareParamsArguments({ ...this.state, ...newState })); + this.props.onChange(...this.prepareParamsArguments({ ...this.state, ...newState })); }, onRadioChange(ev) { @@ -457,7 +457,7 @@ let AntTable = React.createClass({ pagination.onShowSizeChange(current, pageSize); const nextPagination = { ...pagination, pageSize }; this.setState({ pagination: nextPagination }); - this.props.onChange(this.prepareParamsArguments({ + this.props.onChange(...this.prepareParamsArguments({ ...this.state, pagination: nextPagination, }));