materialize: Multi select with opt groups does not render checkboxes

If you create a multiple dropdown and add optgroups it does not render the checkboxes.

<select name="children[]" multiple id="multi_select_dropdown">
    <option value="" disabled selected>Choose Routes</option>
    <optgroup label="assigned">
        <option value="3" selected>Option 2</option>
        <option value="3" selected>Option 4</option>
    </optgroup>
    <optgroup label="Unassigned">
        <option value="3" selected>Option 3</option>
        <option value="3" selected>Option 5</option>
    </optgroup>
</select>

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 80 (29 by maintainers)

Most upvoted comments

Hi guys,

fix is here! Just replace forms.js with this: https://gist.github.com/Farki/7f4ed52d95ef8f4fd8bf8e3377bb69e2

Credits: IT Ipsos.cz

Any update on this getting merged/fixed in the main branch?