Search and match word only show
Opened this issue · 1 comments
Manojkr6637 commented
Search and match word only show
Manojkr6637 commented
vue-treeselect-0.4.0\src\mixins\treeselectMixin.js
====Add hero====
function match(enableFuzzyMatch, needle, haystack) {
enableFuzzyMatch;
// console.log('fuzzysearchfuzzysearch', enableFuzzyMatch, needle, haystack);
// const dd = enableFuzzyMatch ?
// fuzzysearch(needle, haystack) :
// includes(haystack, needle)
// console.log("dddddd====testing=", dd, enableFuzzyMatch)
const sentence = haystack.toLowerCase();
return sentence.includes(needle.toLowerCase());
}