fix selecting "Select..." option in multiple input

This commit is contained in:
Alexander Navarro 2023-09-24 12:34:53 -03:00
parent 3299a8f65c
commit f5f57de46d

View file

@ -54,7 +54,7 @@ export default function Select({
// FIXME: This looks awfull, when updating the input use something better. // FIXME: This looks awfull, when updating the input use something better.
for (let index = 0; index < target.options.length; index++) { for (let index = 0; index < target.options.length; index++) {
const option = target.options[index]; const option = target.options[index];
if (!option.selected) continue; if (!option.selected || option.value === '') continue;
values.push(option.value); values.push(option.value);
} }