Skip to content
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

Changing Per Page resets the pagination info but doesn't reset the current page #809

Closed
1 task done
GeorgeLee134 opened this issue Jan 28, 2021 · 7 comments
Closed
1 task done
Assignees
Labels

Comments

@GeorgeLee134
Copy link

Issue Type

  • Bug

Specs

vue-good-table 2.21.0
VueJs 2.6.10

What browser? Chrome Version 88.0.4324.104 (Official Build) (64-bit)

Expected Behavior

When changing the per page, the table resets to page one.

Actual Behavior

When changing the per page, the table attempts to reset to page one, the pagination info shows page 1 of x but the results are for the page number you were on

Steps to Reproduce the Problem

  1. Navigate to Page 2
  2. Set Rows per page to be 20

jsfiddle

Please use this example

@xaksis
Copy link
Owner

xaksis commented Feb 27, 2021

v2.21.5 should fix this.

@xaksis xaksis closed this as completed Feb 27, 2021
@GeorgeLee134
Copy link
Author

@xaksis Using the jsFiddle with v2.21.7 it still seems broken

@xaksis
Copy link
Owner

xaksis commented Mar 3, 2021

oh strange! will investigate.

@xaksis xaksis reopened this Mar 3, 2021
@xaksis
Copy link
Owner

xaksis commented Mar 3, 2021

The styles look pretty stupid too. Will take a look soon.

@GeorgeLee134
Copy link
Author

Is that the big dropdown? as we noticed that and changed them back to how they used to look.

FYI I believe the issue happens when you do the following

  1. Set page size to 20
  2. Navigate to last page
  3. Set page size to 10

You end up on the second page but with the navigation displaying the first page

@ctwillie
Copy link

ctwillie commented Mar 11, 2021

Having the same problem. Is there a rough time frame for the fix? Thanks for the awesome work you all are doing!

@Michel-HaiRUn
Copy link

Michel-HaiRUn commented Jan 20, 2023

I'm in v2.21.11, and the problem still persist. i'm in remote mode
When i'm in page 2, and change the perPage, the display is in page one but my data is still in page 2 . The sort change as well display same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment