Skip to content

Commit 075951a

Browse files
committed
Fix disabled for optgroup options (#152)
1 parent 5a7e3f3 commit 075951a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

public/jquery.selectric.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@
447447
$elm.children().each(function(i) {
448448
var $elm = $(this);
449449

450-
optionsGroup.items[i] = _this.getItemData(currIndex, $elm, optionsGroup.groupDisabled);
450+
optionsGroup.items[i] = _this.getItemData(currIndex, $elm, optionsGroup.groupDisabled || $elm.prop('disabled'));
451451

452452
_this.lookupItems[currIndex] = optionsGroup.items[i];
453453

src/jquery.selectric.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@
430430
$elm.children().each(function(i) {
431431
var $elm = $(this);
432432

433-
optionsGroup.items[i] = _this.getItemData(currIndex, $elm, optionsGroup.groupDisabled);
433+
optionsGroup.items[i] = _this.getItemData(currIndex, $elm, optionsGroup.groupDisabled || $elm.prop('disabled'));
434434

435435
_this.lookupItems[currIndex] = optionsGroup.items[i];
436436

0 commit comments

Comments
 (0)