You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, for the tree.filterBranches, if the parent node and child node both matches the filter, only the parent gets highlighted. There are two caveats for this:
Matched Child node doesn't get highlighted
Matched parent node doesn't get expanded
I found that this is happening because of the line return "skip"; inside _applyFilterImpl
mar10
changed the title
Feature Request: Filter/Highlight the child nodes even after branch is filtered for tree.filterBranches()
Mark matching nodes even if parent was matched in branch mode
Nov 13, 2016
Currently, for the tree.filterBranches, if the parent node and child node both matches the filter, only the parent gets highlighted. There are two caveats for this:
I found that this is happening because of the line
return "skip";
inside_applyFilterImpl
Suggested code change:
tree.filterBranches(match, {autoExpand: true, filterMatchedParent: true})
Inside
_applyFilterImpl
filterMatchedParent = !!opts.filterMatchedParent;
if(!filterMatchedParent) {
return "skip";
}
The text was updated successfully, but these errors were encountered: