|
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.
rijkshuisstijl-community/packages/components-react/library-react/src/FormField.tsx
Line 39 in d9dd8bf
FormField wordt gebruikt door FormFieldCheckboxGroup, maar het id is niet een id van een "input"-element, wat resulteert in een foutmelding in chrome devtools: