grid-js / gridjs

Advanced table plugin
https://gridjs.io
MIT License
4.39k stars 240 forks source link

Pagination's selected num forced change to `1` with sort #1397

Open cytokine-murakami opened 11 months ago

cytokine-murakami commented 11 months ago

Describe the bug When paging and sorting are true, if you select anything other than 1 for paging and then sort, the paging number will be 1.

To Reproduce Steps to reproduce the behavior:

  1. click on the last number of the paging
  2. click on Pokemon Cell
  3. look at the paging numbers

Expected behavior Especially if the paging is the last number, the number of data displayed may be different from the others, and if we are sorting in that state, shouldn't the paging number remain the selected number?

Screenshots Screen Shot 2023-11-08 at 12 58 56 Screen Shot 2023-11-08 at 12 59 01

Desktop (please complete the following information):

stale[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.