peshanghiwa / vue-awesome-paginate

The Awesome Vue.js 3 Pagination Library
MIT License
147 stars 21 forks source link

Updating the current page prop value does not change the total pages #4

Closed sjanneflinterman closed 1 year ago

sjanneflinterman commented 1 year ago

Like the title says, updating the current page prop programmatically does not change the current page in the vue-awesome-paginate component. To give some context as to where this is useful: I need to 'reset' the pagination back to 1 whenever I perform a filter or search action on my table with pagination.

peshanghiwa commented 1 year ago

Hello dear @sjanneflinterman

Thank you very much for this really critical bug report, it's now fixed and published on NPM with latest version 1.1.0. I Have deprecated currentPage prop as i believe it's not really useful as it's not reactive and replaced it with Vue's default v-model prop and it makes more sense now.

The documentation is also updated you can check it now.

Best.

CreaticDD commented 1 year ago

Thank you!