diff --git a/packages/table/src/filter-panel.vue b/packages/table/src/filter-panel.vue index cd886b953..3eb35a051 100644 --- a/packages/table/src/filter-panel.vue +++ b/packages/table/src/filter-panel.vue @@ -93,7 +93,7 @@ handleSelect(filterValue) { this.filterValue = filterValue; - if (typeof filterValue === 'number' && filterValue >= 0) { + if ((typeof filterValue !== 'undefined') && (filterValue !== null)) { this.confirmFilter(this.filteredValue); } else { this.confirmFilter([]); @@ -129,7 +129,7 @@ }, set(value) { if (this.filteredValue) { - if (typeof value === 'number' && value >= 0) { + if ((typeof value !== 'undefined') && (value !== null)) { this.filteredValue.splice(0, 1, value); } else { this.filteredValue.splice(0, 1);