Fixed #106 - Paginator should go to last page if current page has no data

pull/132/head
cagataycivici 2019-12-10 09:21:06 +03:00
parent e6c891c360
commit 1ebaea5187
1 changed files with 5 additions and 0 deletions

View File

@ -74,6 +74,11 @@ export default {
},
rows(newValue) {
this.d_rows = newValue;
},
totalRecords(newValue) {
if (this.page > 0 && newValue && (this.d_first >= newValue)) {
this.changePage(this.pageCount - 1);
}
}
},
methods: {