Commit 9c5f0877 authored by Sander van der Linden's avatar Sander van der Linden

selectAll() does not 'select' options with data-role='divider'

parent 6367ced0
...@@ -1103,7 +1103,7 @@ ...@@ -1103,7 +1103,7 @@
} }
if (allCheckboxesCount === visibleCheckboxesCount || justVisible === false) { if (allCheckboxesCount === visibleCheckboxesCount || justVisible === false) {
$("option:enabled", this.$select).prop('selected', true); $("option:not([data-role='divider']):enabled", this.$select).prop('selected', true);
} }
else { else {
var values = visibleCheckboxes.map(function() { var values = visibleCheckboxes.map(function() {
......
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