Skip to content

Incorrect use of <label for=FORM_ELEMENT> in FormFieldCheckboxGroup #2327

@MrSkippy

Description

@MrSkippy

const labelComponent = <FormLabel htmlFor={id}>{label}</FormLabel>;

FormField wordt gebruikt door FormFieldCheckboxGroup, maar het id is niet een id van een "input"-element, wat resulteert in een foutmelding in chrome devtools:

Incorrect use of
The label's for attribute doesn't match any element id. This might prevent the browser from correctly autofilling the form and accessibility tools from working correctly.

To fix this issue, make sure the label's for attribute references the correct id of a form field.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions