Skip to content

Disabled Optgroups still show the optgroup header and divider #1338

@msct

Description

@msct

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');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions