[Bug] disabled in select option does not work

For native select elements, setting the disabled attribute on an option has no effect:

<select>
<option disabled>...</option>
</select>

Btw, is the forum the right place to submit such bugs? I thought about creating issues on github, but there are only repos dedicated to either the documentation or the examples, so I didn’t think it would fit there.

Just to piggyback on this, I’ve also found that the “multiple” attribute on native select elements doesn’t work.

<select name="cars" id="cars" multiple>
      <option value="volvo">Volvo</option>
      <option value="saab">Saab</option>
</select>

The HTML <select> does not support disabled or multiple. If you need this functionality, please use sp-dropdown, which supports both features.

1 Like