Fixed #427 - Global filter is not working with invalid values on TreeTable
parent
6da0f9820d
commit
4e58e8d6f9
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue