From 57dcd961d5cddc9bc0bde5c64d0d3a97bcf8be35 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Wed, 24 May 2017 10:29:47 +0100 Subject: [PATCH] Option selects now default to the first option if not previously set --- src/web/OptionsWaiter.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/web/OptionsWaiter.js b/src/web/OptionsWaiter.js index 02e44c0c..98343154 100755 --- a/src/web/OptionsWaiter.js +++ b/src/web/OptionsWaiter.js @@ -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; } } };