From 4e58e8d6f9c07d8f099fc7dabcbf0e7f25951668 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Wed, 5 Aug 2020 17:04:27 +0300 Subject: [PATCH] Fixed #427 - Global filter is not working with invalid values on TreeTable --- src/components/treetable/TreeTable.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/treetable/TreeTable.vue b/src/components/treetable/TreeTable.vue index 3c8cc516fd..f43ceeeeed 100755 --- a/src/components/treetable/TreeTable.vue +++ b/src/components/treetable/TreeTable.vue @@ -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) {