We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2212020 commit d3f7dcbCopy full SHA for d3f7dcb
src/tree-manager/index.js
@@ -89,7 +89,7 @@ class TreeManager {
89
}
90
91
filterTree(searchTerm, keepTreeOnSearch, keepChildrenOnSearch) {
92
- const matches = this.getMatches(searchTerm.toLowerCase())
+ const matches = this.getMatches(searchTerm)
93
94
const matchTree = new Map()
95
@@ -289,7 +289,7 @@ class TreeManager {
289
290
291
_getAddOnMatch(matches, searchTerm) {
292
- let isMatch = (node, term) => node.label.toLowerCase().indexOf(term) >= 0
+ let isMatch = (node, term) => node.label.toLowerCase().indexOf(term.toLowerCase()) >= 0
293
if (typeof this.searchPredicate === 'function') {
294
isMatch = this.searchPredicate
295
0 commit comments