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

RadioGroup does not accept booleans #3724

Closed
joepaolicelli opened this issue Mar 28, 2025 · 0 comments · Fixed by #3781
Closed

RadioGroup does not accept booleans #3724

joepaolicelli opened this issue Mar 28, 2025 · 0 comments · Fixed by #3781
Labels
bug Something isn't working triage v3 #1289

Comments

@joepaolicelli
Copy link

Environment

(CodeSandbox)

  • Operating System: Linux
  • Node Version: v20.12.0
  • Nuxt Version: 3.16.1
  • CLI Version: 3.23.1
  • Nitro Version: 2.11.7
  • Package Manager: [email protected]
  • Builder: -
  • User Config: modules, devtools, compatibilityDate, future
  • Runtime Modules: @nuxt/[email protected]
  • Build Modules: -

Is this bug related to Nuxt or Vue?

Nuxt

Version

v3.0.2

Reproduction

https://codesandbox.io/p/devbox/quirky-pare-zxxn6x

Description

The RadioGroup component does not accept boolean values, despite the documentation saying it should. I'm not sure if this is a bug or is intended and the documentation is wrong.

In the provided codesandbox (using v3.0.2) you can see the type errors in the code, as well as buggy behavior in the app.

Docs:

Use the `items` prop as an array of strings, numbers or booleans:

Additional context

No response

Logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage v3 #1289
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant