commit
1a98ac1a97
2 changed files with 20 additions and 3 deletions
|
@ -495,9 +495,14 @@
|
|||
const nodeText = node.elm ? node.elm.textContent : node.text;
|
||||
return `${str} ${nodeText}`;
|
||||
}, '') || '';
|
||||
const stringValues = JSON.stringify([label, textContent]);
|
||||
const stringValues = [label, textContent];
|
||||
const query = this.query.toLowerCase().trim();
|
||||
return stringValues.toLowerCase().includes(query);
|
||||
for (let i = 0; i < stringValues.length; ++i) {
|
||||
if (stringValues[i].toLowerCase().includes(query)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
toggleMenu (e, force) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue