Fixed #427 - Global filter is not working with invalid values on TreeTable

pull/435/head
mertsincan 2020-08-05 17:04:27 +03:00
parent 6da0f9820d
commit 4e58e8d6f9
1 changed files with 1 additions and 4 deletions

View File

@ -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};
@ -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) {