thesmythgroup / vue-toolkit

Completely style-able, fully accessible UI components, built with Vue.
https://thesmythgroup.github.io/vue-toolkit/
MIT License
2 stars 1 forks source link

fix(paginator): reset index on page size change #9

Closed adamcoots closed 3 years ago

adamcoots commented 3 years ago

Description

Issue: #8 Problem:

Ex: If you have a list of 40 results and you are viewing 25 and a time, navigate to page 2, then change per page to 50 and you are at page 2 of 1.

Solution:

Reset the current index to 0 on page size change.

Checklist

Please ensure your pull request fulfills the following requirements:

Type

What kind of change does this pull request introduce?

[x] Bug
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other (please describe below)

Breaking Changes

Does this pull request introduce any breaking changes?

[ ] Yes
[x] No

Other Information

n/a