Closed
Description
Version
2.4.2
Reproduction link
https://jsfiddle.net/vwtLfh2e/1/
Steps to reproduce
Type one character in the input
What is expected?
The character is added to the input, the value
property is updated to reflect the change, and the setDirty
method is called, setting isDirty
to true
What is actually happening?
The setDirty
method is called, but nothing is added to the input and the value
does not update.
After the first character entry into the input, the model binding works as expected. It seems that using @input.once="someMethod"
is preventing the expected behavior of v-model
.
Found via this StackOverflow question