not possible for select option: selected + disabled?
wivaku opened this issue · comments
Liking this package!
Similar to #44 , I want to add header (and/or separator) options to a select component. But, I want them to be disabled and selected.
The issue: <x-form-select>
does not support an option with disabled selected
.
E.g. this works for a regular select:
<select>
<option value="" disabled selected>please select...</option>
<option value="1">one</option>
</select>
Result is that "please select..." is selected (as expected).
And this does not:
<x-form-select name="...">
<option value="" disabled selected>please select...</option>
<option value="1">one</option>
</select>
Result is that "one" is selected.
Note: using in combination with Livewire v2.
This now supported in v3.2.0 :)