Skip to content

Empty string as entry in options array of BFormCheckboxGroup returned as true in v-model #1822

@Mellofant

Description

@Mellofant

Describe the bug

Hi,

I am using the BFormCheckboxGroup and provide an options array with strings. In my use case one of the options can also be the empty string (""), but when the checkbox of the empty string is selected v-model returns [true] as the selected options instead of [""] (see attached stackblitz).

Reproduction

https://stackblitz.com/edit/github-6phuvv?file=src%2FApp.vue

Used Package Manager

npm

Validations

  • Have tested with the latest version. This is still alpha version and sometime things change rapidly.
  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions