[Vuejs]-Javascript Vue Event Emit Not Value

0👍

The problem is that the input event fires before the v-model binding has changed the data.

Simple solution is to use the change event instead. For example

<input v-model="article.is_review" @change="update">

Simplified demo ~ http://jsfiddle.net/u20h5tzv/

Hint: Try changing it back to @input and see the difference in timing.

👤Phil

Leave a comment