Skip to content

Commit

Permalink
support hidden attribute on options (#2140)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyjhol committed Dec 7, 2018
1 parent 33d77a1 commit 9bb511a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/bootstrap-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,7 @@

var parentData = $parent.data();

if (thisData.hidden === true || (that.options.hideDisabled && (isDisabled || isOptgroupDisabled))) {
if ((thisData.hidden === true || this.hidden) || (that.options.hideDisabled && (isDisabled || isOptgroupDisabled))) {
// set prevHiddenIndex - the index of the first hidden option in a group of hidden options
// used to determine whether or not a divider should be placed after an optgroup if there are
// hidden options between the optgroup and the first visible option
Expand Down

0 comments on commit 9bb511a

Please sign in to comment.