1
0
mirror of synced 2024-11-17 11:37:13 +01:00

Option selects now default to the first option if not previously set

This commit is contained in:
n1474335 2017-05-24 10:29:47 +01:00 committed by GitHub
parent 83878d6b05
commit 57dcd961d5

View File

@ -47,6 +47,8 @@ OptionsWaiter.prototype.load = function(options) {
if (val) {
selects[i].value = val;
selects[i].dispatchEvent(new CustomEvent("change", {bubbles: true}));
} else {
selects[i].selectedIndex = 0;
}
}
};