Fix appendChild usage

We replaced append with appendChild for better browser support, but it accepts only single elements, so we need to flatten the array.
This commit is contained in:
Alex P 2022-10-09 18:16:54 +03:00
parent 783377cddd
commit a2668e37d2

View file

@ -207,7 +207,7 @@ document.addEventListener(
} }
return option; return option;
} }
); ).flat();
target.innerHTML = ''; target.innerHTML = '';
selectedValidOptions.forEach( selectedValidOptions.forEach(