Skip to content

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

Closed
@nickmessing

Description

@nickmessing

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions