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

Pagination has no event for when user changes page size nor option to bind size to #123

Open
SparK-Cruz opened this issue Mar 25, 2022 · 1 comment

Comments

@SparK-Cruz
Copy link

SparK-Cruz commented Mar 25, 2022

When you change the pagination size it will check if page is the same and if so never trigger the change event because it's a single event for both size and page.
No way to read the page from outside except using refs.
I had to put a watcher on currentPageSize using this.$watch inside this.$nextTick inside the created() method.

image

Also the select is not styled like the material docs suggest

@SparK-Cruz
Copy link
Author

SparK-Cruz commented Jun 23, 2022

You linked the commit and all but in that file the select still calls handleChange and handleChange still checks for page number and doesn't emit the event

That said, if you remove this line:
if (this.currentPage !== page) {

from the handleChange function it would all work

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

No branches or pull requests

1 participant