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

BFormCheckbox type check failed for prop "modelValue" #1853

Closed
6 tasks done
geozaur opened this issue Apr 18, 2024 · 4 comments
Closed
6 tasks done

BFormCheckbox type check failed for prop "modelValue" #1853

geozaur opened this issue Apr 18, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@geozaur
Copy link

geozaur commented Apr 18, 2024

Describe the bug

Hello and thank you for contributing this project!

When using a BFormCheckbox with custom checked and unchecked values (1 and 0), there is a warning stating that the prop type is wrong.

This was not happening in previous versions (before 0.17).

[Vue warn]: Invalid prop: type check failed for prop "modelValue". Expected Boolean, got Number with value 1. 

Reproduction

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

Used Package Manager

pnpm

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.
@geozaur geozaur added the bug Something isn't working label Apr 18, 2024
Copy link

stackblitz bot commented Apr 18, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@suzumejakku
Copy link

Probably same as #1846

@xvaara
Copy link
Contributor

xvaara commented Apr 18, 2024

It's the same, it's a vue bug: vuejs/core#10726

@geozaur
Copy link
Author

geozaur commented Apr 19, 2024

Same as #1846

@geozaur geozaur closed this as completed Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants