fix selecting "Select..." option in multiple input
This commit is contained in:
parent
3299a8f65c
commit
f5f57de46d
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ export default function Select({
|
|||
// FIXME: This looks awfull, when updating the input use something better.
|
||||
for (let index = 0; index < target.options.length; index++) {
|
||||
const option = target.options[index];
|
||||
if (!option.selected) continue;
|
||||
if (!option.selected || option.value === '') continue;
|
||||
|
||||
values.push(option.value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue