Skip to content

Reset currentPage when pageSize is updated #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nederdirk
Copy link

This patch resets pagination.currentPage whenever pagination.pageSize is updated. This is useful in situations like this:

  1. Given that there are several pages in the table and the current page size is not the max possible
  2. When you select the last page
  3. And when you increase the current page size
  4. without this patch, then there would be no items visible in the table. With this patch, then the first page with the new page size would be displayed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant