From f61e39ccce08e44ff14719b0eff113d32132cf54 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Sat, 18 Apr 2020 19:16:29 +0300 Subject: [PATCH] Do not reset page on multi sort --- src/components/datatable/DataTable.vue | 2 +- src/components/treetable/TreeTable.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue index 8b88a4623..1b761c132 100644 --- a/src/components/datatable/DataTable.vue +++ b/src/components/datatable/DataTable.vue @@ -496,6 +496,7 @@ export default { this.$emit('update:sortField', this.d_sortField); this.$emit('update:sortOrder', this.d_sortOrder); + this.resetPage(); } else if (this.sortMode === 'multiple') { let metaKey = event.metaKey || event.ctrlKey; @@ -508,7 +509,6 @@ export default { } this.$emit('sort', this.createLazyLoadEvent(event)); - this.resetPage(); } } }, diff --git a/src/components/treetable/TreeTable.vue b/src/components/treetable/TreeTable.vue index 99a28533d..cd539de85 100644 --- a/src/components/treetable/TreeTable.vue +++ b/src/components/treetable/TreeTable.vue @@ -445,6 +445,7 @@ export default { this.$emit('update:sortField', this.d_sortField); this.$emit('update:sortOrder', this.d_sortOrder); + this.resetPage(); } else if (this.sortMode === 'multiple') { let metaKey = event.metaKey || event.ctrlKey; @@ -462,7 +463,6 @@ export default { sortOrder: this.d_sortOrder, multiSortMeta: this.d_multiSortMeta }); - this.resetPage(); } } },