-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@input.once preventing the update of the input if used with v-model #6552
Labels
Comments
posva
changed the title
v-model with @input.once not updating as expected
@input.once preventing the update of the input if used with v-model
Sep 8, 2017
the passive & capture modifier has this problem too |
seems the fst callback ( input.once event handler ) modified the data and push a microtask (update) to the queue |
yyx990803
added a commit
that referenced
this issue
Sep 12, 2017
ztlevi
pushed a commit
to ztlevi/vue
that referenced
this issue
Feb 14, 2018
f2009
pushed a commit
to f2009/vue
that referenced
this issue
Jan 25, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 thesetDirty
method is called, settingisDirty
to trueWhat is actually happening?
The
setDirty
method is called, but nothing is added to the input and thevalue
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 ofv-model
.Found via this StackOverflow question
The text was updated successfully, but these errors were encountered: