Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabled Optgroups still show the optgroup header and divider #1338

Closed
msct opened this issue Mar 25, 2016 · 0 comments
Closed

Disabled Optgroups still show the optgroup header and divider #1338

msct opened this issue Mar 25, 2016 · 0 comments

Comments

@msct
Copy link

msct commented Mar 25, 2016

Currently when I disable an optgroup the options are hidden (using the data-hide-disabled option), but the optgroup header and divider are still displayed.

I would expect that when we disable (and subsequently hide) optgroups, that their header and divider are hidden as well. But that is not the case.

<optgroup label="Child Sizes" class="optgroup-child" disabled>

or

$("select.select-size optgroup.optgroup-child").prop("disabled", true);
$("select.select-size").selectpicker('refresh');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant