riophae/vue-treeselect

Search and match word only show

Opened this issue · 1 comments

Search and match word only show

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());

}