replaceChildren is too recent

This commit is contained in:
Adrien MALINGREY 2020-10-14 13:09:38 +02:00
parent 9dcf222c87
commit b6efe967ea

View File

@ -57,7 +57,7 @@ function searchCandidatesOf(box) {
function showCandidatesOn(box) {
if (!box.disabled) {
box.list.replaceChildren()
while (box.list.firstChild) box.list.firstChild.remove()
if (!box.value && box.candidates.size) {
const candidatesArray = Array.from(box.candidates).sort()
candidatesArray.forEach(candidate => {