fix: Pagination.onChange should be called #824

This commit is contained in:
Benjy Cui 2016-01-08 15:28:32 +08:00
parent 1cff3f77f0
commit 64cde2e905
2 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,9 @@ const pagination = {
showSizeChanger: true,
onShowSizeChange: function(current, pageSize) {
console.log('Current: ', current, '; PageSize: ', pageSize);
},
onChange: function(current) {
console.log('Current: ', current);
}
};

View File

@ -253,6 +253,8 @@ let AntTable = React.createClass({
} else {
pagination.current = pagination.current || 1;
}
pagination.onChange(pagination.current);
const newState = {
selectionDirty: false,
pagination