Skip to content
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

Closed
lancetharper opened this issue Jul 25, 2017 · 0 comments · Fixed by #6220
Closed

checkbox with array model doesn't work with an array value #6219

lancetharper opened this issue Jul 25, 2017 · 0 comments · Fixed by #6220

Comments

@lancetharper
Copy link

lancetharper commented Jul 25, 2017

Version

2.4.2

Reproduction link

https://jsfiddle.net/0wvstw39/1/

Steps to reproduce

  1. Create <input type="checkbox" :value="[1]" />
  2. Bind it to an array using v-model.

What is expected?

Toggling the checkbox will add/remove the value array to the v-model array.

What is actually happening?

Toggling the checkbox adds the contents of the value array to the v-model array. Checkbox is not toggled and contents are added as many times as clicked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants