Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jsx-a11y/control-has-associated-label issuing warnings for hidden fields #691

Closed
hades200082 opened this issue Jun 1, 2020 · 2 comments · Fixed by #709
Closed

jsx-a11y/control-has-associated-label issuing warnings for hidden fields #691

hades200082 opened this issue Jun 1, 2020 · 2 comments · Fixed by #709
Assignees

Comments

@hades200082
Copy link

<input type="hidden" name="form-name" value="Contact Form"/>
<input type="hidden" name="bot-field"/>

The above fields trigger the warnings...

   9:9  warning  A control must be associated with a text label  jsx-a11y/control-has-associated-label
  10:9  warning  A control must be associated with a text label  jsx-a11y/control-has-associated-label
@ljharb
Copy link
Member

ljharb commented Jun 11, 2020

Indeed, there should be no warnings for any hidden input. Thanks for the report!

@jessebeach
Copy link
Collaborator

@hades200082 these examples are passing in the latest version 6.3.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants