diff options
Diffstat (limited to 'multiple-select.js')
-rw-r--r-- | multiple-select.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/multiple-select.js b/multiple-select.js index 8f249a5..db46cac 100644 --- a/multiple-select.js +++ b/multiple-select.js @@ -185,7 +185,8 @@ $group.append([ '<li class="group">', sprintf('<label class="optgroup %s" data-group="%s">', disabled ? 'disabled' : '', group), - this.options.hideOptgroupCheckboxes ? '' : sprintf('<input type="checkbox" %s %s>', + this.options.hideOptgroupCheckboxes || this.options.single ? '' : + sprintf('<input type="checkbox" %s %s>', this.selectGroupName, disabled ? 'disabled="disabled"' : ''), label, '</label>', |