-
-
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
checkbox with array model doesn't work with an array value #6219
Labels
Comments
nickmessing
added a commit
to nickmessing/vue
that referenced
this issue
Jul 26, 2017
13 tasks
yyx990803
pushed a commit
that referenced
this issue
Sep 1, 2017
FranklinTesla
pushed a commit
to FranklinTesla/vue
that referenced
this issue
Sep 5, 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/0wvstw39/1/
Steps to reproduce
<input type="checkbox" :value="[1]" />
v-model
.What is expected?
Toggling the checkbox will add/remove the
value
array to thev-model
array.What is actually happening?
Toggling the checkbox adds the contents of the
value
array to thev-model
array. Checkbox is not toggled and contents are added as many times as clicked.The text was updated successfully, but these errors were encountered: