[Vuejs]-How to active Switch when dynamic form input changes in Vue js

0👍

If you add this line to watch every time you change this model the switch is set to true. You need a conditional, try this.

this.items[index].switch = this.changed.includes(newOld.id)

Leave a comment