fix for global filter in treetable

pull/426/head
Rathi_ayush9 2020-08-05 17:13:34 +05:30
parent 60673fc845
commit 9f43747837
1 changed files with 3 additions and 3 deletions

View File

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