diff --git a/core/src/main/resources/lib/form/select/select.js b/core/src/main/resources/lib/form/select/select.js index dba4e195898fbbb9ff1a7a4aa7fe5cc30fc94fdb..3cfc0a7f2862970b5bfd6942ae6ef7518e180941 100644 --- a/core/src/main/resources/lib/form/select/select.js +++ b/core/src/main/resources/lib/form/select/select.js @@ -44,7 +44,7 @@ Behaviour.specify("SELECT.select", 'select', 1000, function(e) { function hasChanged(selectEl, originalValue) { // seems like a race condition allows this to fire before the 'selectEl' is defined. If that happens, exit.. - if(!selectEl || !selectEl.options || !selectEl[0]) + if(!selectEl || !selectEl.options || !selectEl.options[0]) return false; var firstValue = selectEl.options[0].value; var selectedValue = selectEl.value; @@ -82,4 +82,4 @@ Behaviour.specify("SELECT.select", 'select', 1000, function(e) { } }); }); -}); \ No newline at end of file +});