mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
fix: Pagination.onChange should be called #824
This commit is contained in:
parent
1cff3f77f0
commit
64cde2e905
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -253,6 +253,8 @@ let AntTable = React.createClass({
|
||||
} else {
|
||||
pagination.current = pagination.current || 1;
|
||||
}
|
||||
pagination.onChange(pagination.current);
|
||||
|
||||
const newState = {
|
||||
selectionDirty: false,
|
||||
pagination
|
||||
|
Loading…
Reference in New Issue
Block a user