0👍
optgroup has only one level in selects
That means you can insert it only like
<select>
<optgroup label="1st label">
<option> some option </option>
</optgroup>
<optgroup label="2st label">
<option> some option </option>
</optgroup>
</select>
In alternative ways, you can use the custom select’s packages like Vue Select
- [Vuejs]-Passing a carbon date as a prop would return a computation in the vue template
- [Vuejs]-Laravel vue pusher – broadcasting on private channels not working
Source:stackexchange.com