Fixed #356 - DataView should reset paginator on sort

pull/358/head
cagataycivici 2020-07-03 14:38:39 +03:00
parent 35688ee8ea
commit 835ad28709
1 changed files with 10 additions and 0 deletions

View File

@ -114,6 +114,12 @@ export default {
},
rows(newValue) {
this.d_rows = newValue;
},
sortField(newValue) {
this.resetPage();
},
sortOrder(newValue) {
this.resetPage();
}
},
methods: {
@ -153,6 +159,10 @@ export default {
else {
return null;
}
},
resetPage() {
this.d_first = 0;
this.$emit('update:first', this.d_first);
}
},
computed: {