Skip to content

Incorrect error for vuejs-accessibility/label-has-for? #133

Closed
@AustinGil

Description

@AustinGil

Getting a weird issue with form labels. ESLint is complaining:

Form label must have an associated control.eslint(vuejs-accessibility/label-has-for)

But the code is correct:

<label for="email">Email:</label>
<input id="email" name="email" type="email" required />

image

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions