Don't break the mmf inputs when autocomplete init failed.
This commit is contained in:
parent
ca3540670c
commit
5f91554198
1 changed files with 8 additions and 3 deletions
|
@ -436,9 +436,14 @@ function add_searchtag_from_box(box, inputted_list, li_class)
|
||||||
{return;}
|
{return;}
|
||||||
|
|
||||||
let value = box.value;
|
let value = box.value;
|
||||||
|
if (tag_autocomplete.datalist !== null)
|
||||||
|
{
|
||||||
|
// If the autocomplete failed for whatever reason, or is simply taking
|
||||||
|
// too long, let's just let it slide.
|
||||||
value = tag_autocomplete.resolve(value);
|
value = tag_autocomplete.resolve(value);
|
||||||
if (value === null)
|
if (value === null)
|
||||||
{return;}
|
{return;}
|
||||||
|
}
|
||||||
|
|
||||||
console.log(inputted_list);
|
console.log(inputted_list);
|
||||||
ul = box.parentElement.parentElement;
|
ul = box.parentElement.parentElement;
|
||||||
|
|
Loading…
Reference in a new issue