You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried extending (overwriting) the component, but with no luck.
My goal is to stop b-pagination from resetting the current Page to 1 when I change the number of Pages by changing per Page to a different value, let's say from 10 to 25 or vice versa.
For instance, I tried to uncomment the setting of the page in the watcher, but no success:
watch: {pageSizeNumberOfPages(newValue,oldValue){if(!isUndefinedOrNull(oldValue)){if(newValue.perPage!==oldValue.perPage&&newValue.totalRows===oldValue.totalRows){// If the page size changes, reset to page 1// this.currentPage = 1}elseif(newValue.numberOfPages!==oldValue.numberOfPages&&this.currentPage>newValue.numberOfPages){// If `numberOfPages` changes and is less than// the `currentPage` number, reset to page 1// this.currentPage = 1}}this.localNumberOfPages=newValue.numberOfPages}},
It still keeps resetting the current Page.
Any help would be highly appreciated.
The text was updated successfully, but these errors were encountered:
Hi,
so, I have been pulling my hair out of this one.
I tried extending (overwriting) the component, but with no luck.
My goal is to stop b-pagination from resetting the current Page to 1 when I change the number of Pages by changing per Page to a different value, let's say from 10 to 25 or vice versa.
For instance, I tried to uncomment the setting of the page in the watcher, but no success:
It still keeps resetting the current Page.
Any help would be highly appreciated.
The text was updated successfully, but these errors were encountered: