fixed autocomplete

This commit is contained in:
azivner
2017-11-19 19:39:39 -05:00
parent e992087720
commit 658f4872af
6 changed files with 49 additions and 29 deletions

View File

@@ -57,10 +57,10 @@ $.ui.autocomplete.filter = (array, terms) => {
for (const item of array) {
let found = true;
const lcValue = item.value.toLowerCase();
const lcLabel = item.label.toLowerCase();
for (const token of tokens) {
if (lcValue.indexOf(token) === -1) {
if (lcLabel.indexOf(token) === -1) {
found = false;
break;
}