-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
label-has-for does not handle binding for attribute #119
Comments
Sorry to point this out when it's not the point of the issue, but an It seems there might be a problem around this lines. Could you send a reproduction link? with the correct versions and stuff? |
Actually, this might be a problem with your configuration of the rule, could you send here what the configuration it is that you are using? |
This is all I'm doing, not adding any custom rules
|
Yeah, after my first comment I remembered that the default config for {
"rules": {
"vuejs-accessibility/label-has-for": ["error", {
"required": {
"some": ["nesting", "id"]
}
}]
}
} The |
thinking about it, the name |
This worked for me, thanks for your help. |
Thanks @vhoyer! |
no problems :D But just to keep track of the problem, this can be considered related to #54 |
Had the same "issue" today. |
Just simply by extending, and then reconfiguring the rule under the "rules" property of the configuration you are already using all of the recommended and customizing only what you want |
This is what I did, did not update my message. Thanks. |
I realize this is a couple years old at this point, but is there another known solution or workaround? <input id="log_y" v-model="log_y" type="checkbox" class="form-check-input" @change="draw_plot" />
<label for="log_y" class="form-check-label">Log y</label> eslint is still throwing Relevant package versions:
|
When using attribute binding to associate the for attribute the plugin does not detect rasies the label-has-for error
This use case is typical when creating enterprise component libraries.
Below is an example of a textbox where the id is being passed as a prop:
Would it be possible to handle this?
Thanks
Bert
The text was updated successfully, but these errors were encountered: