[Vuejs]-Vue: An empty option should remain selectabe

0👍

A little late but you can use:

<option :value="undefined">Select One</option>

then you can do a “for loop” for the other options that need to be rendered:

<option :value="undefined"></option>
<option v-for="o in o.select_options" v-bind:value=o.option_value>{{o.option_name}}</option>

Leave a comment