https://github.com/ant-design/ant-design/issues/11286Go to Github

FundedView inupdate 'page' in 'Pagination' , but 'current page' not update#11286

iofu728created the issue 3 months ago

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.7.0

Environment

react 16.3, chrome 67.0.3396.62

Edit on CodeSandbox

Steps to reproduce

I have searched the issues of this repository and believe that this is not a duplicate.

As the reproduce link, when we click the button, the offset of filter will become bigger. It means that the current page will change, but in fact it do not change. On the other hand, after click button. the limit of filter change. And the table pageSize of table really change. So my problemis that when we change the state of pagination by data instead of action of 'onChange' of 'Table'/'Pagination', the 'current page' of pagination can not change.

This situation is not only in going to next page. The example is only using to show the problem.

What is expected?

when we set a new ’page‘, the pagination should have a new current page

What is actually happening?

when we set a new ‘page’, the current page of pagination do not change.

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->

Logs

  1. lamhieu-vkstoped working24 days ago
  2. lamhieu-vkstarted working24 days ago
  3. loadbalance-sudachi-kunfunded $256about 1 month ago
  4. 0maxxam0funded $53 months ago

Total Fund

$261

You will get $182.7 when resolving this issue

Funded by

2

Work status

No one is working