Data list filter applied should go back to page 1

This commit is contained in:
2021-09-29 22:20:05 +00:00
parent bf38c5f762
commit 1020f245de

View File

@@ -675,6 +675,8 @@ export default {
async filter(item) {
const res = await this.$refs.dataTableFilter.open(item);
if (res && res.refresh == true) {
//New filter, need to go back to the first page
this.dataTablePagingOptions.page = 1;
this.getDataFromApi();
}
},