diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue
index bc10c7b5e..14b935218 100644
--- a/src/components/datatable/DataTable.vue
+++ b/src/components/datatable/DataTable.vue
@@ -11,7 +11,7 @@
-
@@ -61,7 +61,7 @@
-
@@ -283,6 +283,7 @@ export default {
},
onColumnHeaderClick(event, column) {
if (column.sortable) {
+ this.resetPage();
const targetNode = event.target;
const columnField = column.field || column.sortField;
@@ -829,6 +830,10 @@ export default {
}
document.body.removeChild(link);
}
+ },
+ resetPage() {
+ this.d_first = 0;
+ this.$emit('update:first', this.d_first);
}
},
computed: {