You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected Behavior
When dropdownAllowAll enabled + selected and total changes we should keep currentPerPage to -1
Actual Behavior
The currentPerPage is set to the total results value and that breaks the pagination dropdown as such option does not exists
Steps to Reproduce the Problem
Set dropdownAllowAll to true
Use mode='remote'
Get some resuts in table lets say 10
Then update results to anything else, let say 5
Pagination perPage dropdown breaks as:
after total changes the currentPerPage value is set to 5 and 5 is not available option in rowsPerPageOptions
The text was updated successfully, but these errors were encountered:
julius-spudvilas
changed the title
When dropdownAllowAll enabled + selected and total changes we should keep currentPerPage to -1
mode='remote' + dropdownAllowAll enabled and selected >> total changes we should keep currentPerPage to -1
Oct 16, 2023
Expected Behavior
When dropdownAllowAll enabled + selected and total changes we should keep currentPerPage to -1
Actual Behavior
The currentPerPage is set to the total results value and that breaks the pagination dropdown as such option does not exists
Steps to Reproduce the Problem
Set dropdownAllowAll to true
Use mode='remote'
Get some resuts in table lets say 10
Then update results to anything else, let say 5
Pagination perPage dropdown breaks as:
after total changes the currentPerPage value is set to 5 and 5 is not available option in rowsPerPageOptions
Solution:
https://github.com/xaksis/vue-good-table/blob/889962c5b67f5bb621caa0a9bf0b3852d4199235/src/components/pagination/VgtPagination.vue#L146C65-L146C65
line 146 should also check that currentPerPage is NOT -1
The text was updated successfully, but these errors were encountered: