Skip to content

Commit

Permalink
Update VgtFilterRow.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJaredWilcurt authored Apr 14, 2020
1 parent 80df56f commit b162e68
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/VgtFilterRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,12 @@ export default {
reset(emitEvent = false) {
this.columnFilters = {};
// Clear the selection in the multiselect
this.$refs['vgt-multiselect'].forEach((ref) => {
ref.clearSelection();
});
let vSelect = this.$refs && this.$refs['vgt-multiselect'];
if (vSelect) {
vSelect.forEach((ref) => {
ref.clearSelection();
});
}
if (emitEvent) {
this.$emit('filter-changed', this.columnFilters);
Expand Down

0 comments on commit b162e68

Please sign in to comment.