From 7e2888012b673f1608bf6112f9f5d6b85bc1c532 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Wed, 17 Feb 2021 18:11:16 +0300 Subject: [PATCH] Fixed #977 - PrimeVue DataTable bug --- src/components/datatable/DataTable.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue index fc2736f7f..8ed63781d 100755 --- a/src/components/datatable/DataTable.vue +++ b/src/components/datatable/DataTable.vue @@ -525,9 +525,6 @@ export default { this.d_multiSortMeta = [...this.d_multiSortMeta]; }, filter(data) { - this.d_first = 0; - this.$emit('update:first', this.d_first); - if (!data) { return; } @@ -1542,6 +1539,8 @@ export default { this.d_filters = filters; }, onFilterApply() { + this.d_first = 0; + this.$emit('update:first', this.d_first); this.$emit('update:filters', this.d_filters); }, cloneFilters() {