Skip to content

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

@lancetharper

Description

@lancetharper

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions