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

input[type="checkbox] doesn't work with array model and false-value #6178

Closed
nickmessing opened this issue Jul 21, 2017 · 0 comments
Closed
Assignees

Comments

@nickmessing
Copy link
Member

Version

2.4.1

Reproduction link

https://jsfiddle.net/1knrexuq/

Steps to reproduce

  1. Create an <input type="checkbox" value="hello">.
  2. Bind it to an array using v-model.
  3. Add :false-value="'something truthy'" property.

What is expected?

Toggling the checkbox toggles the hello string in array.

What is actually happening?

Toggling the checkbox adds the string to array but doesn't remove it.

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

No branches or pull requests

1 participant