From 1ebaea518733e541d54e6778dc435522a64ff545 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Tue, 10 Dec 2019 09:21:06 +0300 Subject: [PATCH] Fixed #106 - Paginator should go to last page if current page has no data --- src/components/paginator/Paginator.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/paginator/Paginator.vue b/src/components/paginator/Paginator.vue index 229608d63..dbde6c6a3 100644 --- a/src/components/paginator/Paginator.vue +++ b/src/components/paginator/Paginator.vue @@ -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: {