<select
class="cursoruser-pointer p-2 w-full rounded-full ">
<option class="rounded-full "
disabled selected value="">Language to learn</option>
<option class="rounded-full">German</option>
<option>Spanish</option>
<option>English</option>
</select>
Shows
https://i.sstatic.net/adZ9m.png
However when
v-model = "selectedLanguage"
is added:
<select v-model = "selectedLanguage"
class="cursoruser-pointer p-2 w-full rounded-full ">
<option class="rounded-full "
disabled selected value="">Language to learn</option>
<option class="rounded-full">German</option>
<option>Spanish</option>
<option>English</option>
</select>
The placeholder disappears:
https://i.sstatic.net/djQfx.png
<script>
...
export default {
...
data: () => ({
selectedLanguage: 'Language to Learn',
}),
...
What can be done to resolve this?