I am getting ESLintError for LABEL must have nesting, id and label-has-for types.
esLint: warning Form label must have ALL of the following types of associated control: nesting, id jsx-a11y/label-has-for
I believe I've added in both the htmlFor & the aria-labeledby (after getting the error). My Switch Component was already nested within the label (per my understanding), but am still getting the error.
I am getting ESLintError for LABEL must have nesting, id and label-has-for types.
I believe I've added in both the htmlFor & the aria-labeledby (after getting the error). My Switch Component was already nested within the label (per my understanding), but am still getting the error.
Anything I'm missing. This is a newer error.
`
`