Skip to content

Labels wrapped around textarea report label-has-associated-control lint error #639

@davidwkeith

Description

@davidwkeith

Example
image

I also see the issue with:

  • <label>foo<meter /></label>
  • <label>foo<output /></label>
  • <label>foo<progress /></label>

Workaround
Add the following to your .eslintrc.js

module.exports = { rules:
    'jsx-a11y/label-has-associated-control': [`error`, {controlComponents:[ 'textarea', 'meter', 'output', 'progress' ]}],
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions