-
Notifications
You must be signed in to change notification settings - Fork 64
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
Client side pagination and itemsPerPage #138
Comments
Can you please show me some code where this error happen. |
It took some time to reproduce it from scratch but I found the culprit or at least better information. <div tasty-pagination items-per-page="25"></div> |
This problem is not only client side, but also a problem for server side pagination. Basically the code below leads to the page buttons acting like you are at the end of the list of page numbers before you actually are. You can see it on the project's example site. You can't get 7 to show in the pagination when clicking the next pages arrows.
|
@ddavison732 that's slightly different than the problem I'm describing here, but I know what you are referring to. I have a PR out for it, as soon as I can figure out unit tests in JS. :) |
Ok, sorry for the confusion. |
The range pagination is not working in a couple of case. I try to use your PR @seminull but is not enough to cover all the two case where there is the errors, and also is not passing the old tests. |
So, was not so simple find the time to do this fix, |
Thanks @Zizzamia you're awesome! |
I haven't downloaded the changes yet but thanks for maintaining this awesome project. |
The change will be up on the next release. I'm sorry for the delay but it's been few busy weeks in Twitter. |
I was curious as to why in setRemainingRange and setPreviousRange functions that itemsPerPage were even used at all when it comes to incrementing and decrementing whole 'pages'? This caused the page.remaning() and page.previous() buttons to not work as expected.
The text was updated successfully, but these errors were encountered: