commit
1af3dd1f7a
1 changed files with 3 additions and 1 deletions
|
@ -219,7 +219,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
getSelections(this.data);
|
getSelections(this.data);
|
||||||
selections = selections.filter(item => item.label.indexOf(this.query) > -1).map(item => {
|
selections = selections.filter(item => {
|
||||||
|
return item.label ? item.label.indexOf(this.query) > -1 : false
|
||||||
|
}).map(item => {
|
||||||
item.display = item.display.replace(new RegExp(this.query, 'g'), `<span>${this.query}</span>`);
|
item.display = item.display.replace(new RegExp(this.query, 'g'), `<span>${this.query}</span>`);
|
||||||
return item;
|
return item;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue