Topic: option group doesnt work on multiple select

juderaj free asked 7 years ago


option worked on defaul select box but if i used in multiple then its hide the checkbox.
<select class="mdb-select" multiple>
    <option value="" disabled selected>Choose your option</option>
    <optgroup label="team 1">
        <option value="1">Option 1</option>
        <option value="2">Option 2</option>
    </optgroup>
    <optgroup label="team 2">
        <option value="3">Option 3</option>
        <option value="4">Option 4</option>
    </optgroup>
</select>


You can select only one element of optgroup that's why we didn't add checkboxes to optgroup. However, we'll try to add this in the future

ijabit free answered 7 years ago


Why should they be hidden? Why not have the ability to use checkboxes in your dropdown while still grouping your selections? Maybe not a bug, but certainly an oversight.

It's not a bug. The checkboxes should be hidden when the options are divided into groups. If you want to see checkboxes use multiple select

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags