Skip to content

jsx-a11y/label-has-associated-control gives error when for is put  #961

Closed
@TheElegantCoding

Description

@TheElegantCoding

This is my config

'jsx-a11y/label-has-associated-control': 'error'

i am not in react i use "for", this make me error in the code only when i put htmlFor works but i cant do that i dont use react

return (
  <>
    <label for="email" />
    <input id="email" name="email" type="text" />
  </>
)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions