Skip to content

RadioGroup does not accept booleans #3724

@joepaolicelli

Description

@joepaolicelli

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingv3#1289

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions