Skip to content

Chrome reports the FormField label as Incorrect use of <label for=FORM_ELEMENT> when wrapping RadioGroup or CheckboxGroup #3998

@TribeWeb

Description

@TribeWeb

Environment

  • Operating System: Darwin
  • Node Version: v22.13.0
  • Nuxt Version: 3.16.2
  • CLI Version: 3.24.0
  • Nitro Version: 2.11.8
  • Package Manager: [email protected]
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Is this bug related to Nuxt or Vue?

Nuxt

Version

nuxt-ui 3.1.0

Reproduction

https://ui.nuxt.com/components/form

Open in Chrome and check issues in devtools. The linked erroring nodes are all RadioGroups or CheckboxGroups.

Description

The FormField component correctly removes the for attribute from the label for the RadioGroup & CheckboxGroup components. Chrome devtools would suggest that there should be a further step so that <label> is not used at all in this context.

I am happy to propose changes.

Image

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