[Vuejs]-Vue.js not responding to property of object changing

0👍

You’re updating target through the props passed to function. Instead:

methods: {
  toggleShow(target) {
    console.log(target.show);
    this.target.show = !Boolean(this.target.show);
    console.log(target.show);
  },
}

Leave a comment