From 7073144f481e673a3e0975228223c713dbb9fe34 Mon Sep 17 00:00:00 2001 From: Andrew Guy Date: Thu, 22 Jun 2023 18:01:34 +1000 Subject: [PATCH] Fix issue with no $emit when no filters active --- components/lib/datatable/DataTable.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/lib/datatable/DataTable.vue b/components/lib/datatable/DataTable.vue index 50f583883..9315ab050 100755 --- a/components/lib/datatable/DataTable.vue +++ b/components/lib/datatable/DataTable.vue @@ -871,10 +871,6 @@ export default { let activeFilters = this.getActiveFilters(this.filters); - if (Object.keys(activeFilters).length == 0) { - return data; - } - this.clearEditingMetaData(); let globalFilterFieldsArray; @@ -939,7 +935,7 @@ export default { } } - if (filteredValue.length === this.value.length) { + if (filteredValue.length === this.value.length || Object.keys(activeFilters).length == 0) { filteredValue = data; }