forked from mirrors/gecko-dev
Bug 1768469 - Check the length of datalistItems r=sgalich
Differential Revision: https://phabricator.services.mozilla.com/D146875
This commit is contained in:
parent
fe8497688c
commit
3d7fc1d193
1 changed files with 1 additions and 1 deletions
|
|
@ -452,7 +452,7 @@ FormAutoComplete.prototype = {
|
|||
|
||||
// If we had datalistResults, re-merge them back into the filtered
|
||||
// entries.
|
||||
if (datalistItems) {
|
||||
if (datalistItems?.length) {
|
||||
filteredEntries = filteredEntries.map(elt => ({
|
||||
value: elt.text,
|
||||
// History entries don't have labels (their labels would be read
|
||||
|
|
|
|||
Loading…
Reference in a new issue