Skip to content

Commit 563da0a

Browse files
authored
For multiple select, expose an array of values.
1 parent da07d5b commit 563da0a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/generators/input.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ function valueof(input) {
1717
case "date": return input.valueAsDate;
1818
case "checkbox": return input.checked;
1919
case "file": return input.multiple ? input.files : input.files[0];
20+
case "select-multiple": return Array.from(input.selectedOptions, o => o.value);
2021
default: return input.value;
2122
}
2223
}

0 commit comments

Comments
 (0)