Data list filter applied should go back to page 1
This commit is contained in:
@@ -675,6 +675,8 @@ export default {
|
|||||||
async filter(item) {
|
async filter(item) {
|
||||||
const res = await this.$refs.dataTableFilter.open(item);
|
const res = await this.$refs.dataTableFilter.open(item);
|
||||||
if (res && res.refresh == true) {
|
if (res && res.refresh == true) {
|
||||||
|
//New filter, need to go back to the first page
|
||||||
|
this.dataTablePagingOptions.page = 1;
|
||||||
this.getDataFromApi();
|
this.getDataFromApi();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user