Commit c4a53503 authored by David Stutz's avatar David Stutz

Merge pull request #242 from elasticsales/fix-select-all-with-dividers

Fix 'Select All' when there are dividers
parents f1584c7c 83186596
......@@ -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