Merge pull request #548 from blank121/pr547

fix #547
This commit is contained in:
Aresn 2020-06-28 08:42:59 +08:00 committed by GitHub
commit f6fe4dae70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -534,7 +534,7 @@
const nodeText = node.elm ? node.elm.textContent : node.text;
return `${str} ${nodeText}`;
}, '') || '';
const stringValues = this.filterByLabel ? JSON.stringify([label]) : JSON.stringify([value, label, textContent]);
const stringValues = this.filterByLabel ? [label].toString() : [value, label, textContent].toString();
const query = this.query.toLowerCase().trim();
return stringValues.toLowerCase().includes(query);
},