Skip to content

Catalyst Checkbox/Label - Incorrect use of <label for=FORM_ELEMENT>Β #1792

@BriLeeCar

Description

@BriLeeCar

What component (if applicable)

Describe the bug
Using the Checkbox/Label combination gives an "Incorrect use of " error (at least on chrome)

To Reproduce
Steps to reproduce the behavior:

<CheckboxField>
  <Checkbox />
  <Label>Accept Terms and Conditions</Label>
</CheckboxField>

Expected behavior
In the least "smart**" was possible, not to have an error? I originally thought it was my implementation, but I used the base components together without any excess information, and still getting the error. If I'm just missing something and an idiot, I'd love to be told what I'm doing wrong πŸ˜…

Screenshots
Image

Browser/Device (if applicable)

  • Chrome Version 143.0.7499.40 (Official Build) (arm64)
  • MacOS

Additional context
This is honestly my first time reporting an issue ever, so if I did something incorrectly here, please let me know. Thanks guys!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions