dequelabs / dequelabs/axe-core
Vue @click handler triggers false positive for click-events-have-key-events in axe-linter
Open
fix
linting
- Dominant language
- JavaScript
- Stars
- 7.5k
- Forks
- 933
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 17
Description
Axe-linter in VS code incorrectly reports the following Vue `@click` handlers as a failure of _click-events-have-key-events_:
```vue
My link text
My button text
```
Both of these will be triggered by keypress and do not require an explicit keypress event handler.
Product: axe Linter
Expectation: Not throw a false positive on Vue `@click` handler
Actual: Reports `@click` on a link as a failure of _click-events-have-key-events_
Motivation: This is a false positive
axe-linter version: 4.1.1
Browser and Assistive Technology versions
For Tooling issues:
- Node version: 10.16.0
- Platform: Mac
Contributor guide
Assessment
This issue has not been assessed yet.