-
Notifications
You must be signed in to change notification settings - Fork 103
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
Page 0 when filtering #82
Comments
I ran into that problem too. What I did is: wrap vue-paginate in a div with a v-if="yourArray.length". In this way, it will force vue-paginate to re-render. |
i have a some problem, when i select a value for example in listbox i get empty list but when i select all list a get empty too. |
I think, this should be a part of official doc. Worked like a charm. |
i feel like the solution @mornir has is good work around, but isnt addressing the actual problem. is this an issue with vue's reactivity of the array? |
Works perfectly! Should be included in the docs.
|
Also works if you add a "v-if" directive to the paginate component itself.
|
When the pagination is based off a filtered array, if the filter ever becomes empty, it auto-selects page "0". When the list is re-populated, you remain on page "0" with no results until you click another page.
The text was updated successfully, but these errors were encountered: