2👍
Just you have assigned drop down data wrongly , Need to change like below:
Little change in template:
<button v-else @click="saveItem(program)">save</button>
and saveItem() method like below:
saveItem (program) {
program.isReadOnly = true
program.editable = false
console.log(program)
alert(program.dropDowns)
}
1👍
The problem is that you are not passing anything to the saveItem
function, so no program
was being sent.
You just have to replace saveItem
for saveItem(program)
and that should do the trick.
Source:stackexchange.com