[Vuejs]-V-model not always updating in Vue

1👍

I believe you have a timing issue here. The value of the properties haven’t been propagated to the DOM yet, so the form submission is incorrect. Try this instead:

stopAll() {
  this.updateSelectedItems([]);

  //NextTick waits until after the next round of UI updates to execute the callback.
  this.$nextTick(function() {this.confirm()});
}

Leave a comment