Skip to content

Commit

Permalink
Fixed #427 - Global filter is not working with invalid values on Tree…
Browse files Browse the repository at this point in the history
…Table
  • Loading branch information
mertsincan committed Aug 5, 2020
1 parent 6da0f98 commit 4e58e8d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/treetable/TreeTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,6 @@ export default {
filter(value) {
let filteredNodes = [];
const strict = this.filterMode === 'strict';
let valueChanged = false;
for (let node of value) {
let copyNode = {...node};
Expand Down Expand Up @@ -600,15 +599,13 @@ export default {
if (matches) {
filteredNodes.push(copyNode);
}
valueChanged = valueChanged || !localMatch || globalMatch;
}
let filterEvent = this.createLazyLoadEvent(event);
filterEvent.filteredValue = filteredNodes;
this.$emit('filter', filterEvent);
return valueChanged ? filteredNodes : value;
return filteredNodes;
},
findFilteredNodes(node, paramsWithoutNode) {
if (node) {
Expand Down

0 comments on commit 4e58e8d

Please sign in to comment.