Commit 50a32243 authored by hermanho's avatar hermanho

Fixed the error "Cannot read property 'is' of undefined " when applying...

Fixed the error "Cannot read property 'is' of undefined " when applying "includeSelectAllOption" and "includeSelectAllDivider" options
parent bc9a8f2b
......@@ -347,7 +347,7 @@
var options = $('option[value!="' + this.options.selectAllValue + '"]', this.$select);
for (var i = 0; i < options.length; i++) {
// Additionally check whether the option is visible within the dropcown.
if (options[i].value !== this.options.selectAllValue && this.getInputByValue(options[i].value).is(':visible')) {
if (options[i].value !== this.options.selectAllValue && this.getInputByValue(options[i].value) && this.getInputByValue(options[i].value).is(':visible')) {
values.push(options[i].value);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment