allow for missing or unselected option
This commit is contained in:
parent
df595980cf
commit
d5023bddf3
1 changed files with 2 additions and 1 deletions
|
|
@ -1881,7 +1881,8 @@
|
|||
};
|
||||
|
||||
function optSelected(sel) {
|
||||
return sel.options[sel.selectedIndex].value;
|
||||
let opt = sel.options[sel.selectedIndex];
|
||||
return opt ? opt.value : undefined;
|
||||
}
|
||||
|
||||
function fillShow() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue