Commit 83186596 authored by Phil Freo's avatar Phil Freo

Fix 'Select All' when there are dividers

parent 8ce6b52f
......@@ -800,7 +800,7 @@
if (this.hasSelectAll()) {
var selected = this.getSelected();
if (selected.length === $('option', this.$select).length - 1) {
if (selected.length === $('option:not([data-role=divider])', this.$select).length - 1) {
this.select(this.options.selectAllValue);
}
else {
......
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