From 9f4374783791f7176a16f7027dad24a6530495ac Mon Sep 17 00:00:00 2001 From: Rathi_ayush9 Date: Wed, 5 Aug 2020 17:13:34 +0530 Subject: [PATCH] fix for global filter in treetable --- src/components/treetable/TreeTable.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/treetable/TreeTable.vue b/src/components/treetable/TreeTable.vue index d03fdb2c9a..3c8cc516fd 100755 --- a/src/components/treetable/TreeTable.vue +++ b/src/components/treetable/TreeTable.vue @@ -580,9 +580,9 @@ export default { //global if (this.hasGlobalFilter && !globalMatch) { let copyNodeForGlobal = {...copyNode}; - let globalFilterValue = this.props.globalFilter; - let globalFilterConstraint = FilterUtils['contains']; - let globalFilterParamsWithoutNode = {filterField, globalFilterValue, globalFilterConstraint, strict}; + let filterValue = this.filters['global']; + let filterConstraint = FilterUtils['contains']; + let globalFilterParamsWithoutNode = {filterField, filterValue, filterConstraint, strict}; if ((strict && (this.findFilteredNodes(copyNodeForGlobal, globalFilterParamsWithoutNode) || this.isFilterMatched(copyNodeForGlobal, globalFilterParamsWithoutNode))) || (!strict && (this.isFilterMatched(copyNodeForGlobal, globalFilterParamsWithoutNode) || this.findFilteredNodes(copyNodeForGlobal, globalFilterParamsWithoutNode)))) {