Skip to content
Permalink
Browse files
Table: disable filter when filters is an empty array (#11864)
  • Loading branch information
jikkai committed Jul 5, 2018
1 parent 899d70d commit b6eaaf694383942ac38d42dea5979d0a842dcd0f
Showing 2 changed files with 2 additions and 2 deletions.
@@ -270,7 +270,7 @@ export default {
fixed: this.fixed === '' ? true : this.fixed,
filterMethod: this.filterMethod,
filters: this.filters,
filterable: this.filters || this.filterMethod,
filterable: this.filters && this.filters.length && this.filterMethod,
filterMultiple: this.filterMultiple,
filterOpened: false,
filteredValue: this.filteredValue || [],
@@ -339,7 +339,7 @@ export default {
handleHeaderClick(event, column) {
if (!column.filters && column.sortable) {
this.handleSortClick(event, column);
} else if (column.filters && !column.sortable) {
} else if (column.filterable && !column.sortable) {
this.handleFilterClick(event, column);
}

0 comments on commit b6eaaf6

Please sign in to comment.