Closed stephendeo closed 4 years ago
In the options i'm setting the property 'selected: true'
someData: [ { id: 1, text: 'opt1'}, { id: 2, text: 'opt2', disabled: true }, { id: 3, text: 'opt3', selected: true } ]
Its not setting the selected attribute for that option
You should use v-model to bind options selected.
v-model
Sorry didn't reply before, but yes using v-model to bind the options worked perfectly. Thank you.
In the options i'm setting the property 'selected: true'
someData: [ { id: 1, text: 'opt1'}, { id: 2, text: 'opt2', disabled: true }, { id: 3, text: 'opt3', selected: true } ]
Its not setting the selected attribute for that option