Skip to content

Commit 47ae37b

Browse files
authored
Merge pull request #157 from tj-shapeways/fix-disabled-for-optgroup-options-(#152)
Fix disabled for optgroup options (#152)
2 parents 679bc85 + 075951a commit 47ae37b

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)