The rule should exclude interactive elements. Buttons are indeed excluded, however, anchor tags with click events (without key events) still cause a lint error:
<a (click)="handleClick()">My link</a>
click must be accompanied by either keyup, keydown or keypress event for accessibility
Context and configuration
rule: template-click-events-have-key-events
tsconfig.json:
Describe the bug
The rule should exclude interactive elements. Buttons are indeed excluded, however, anchor tags with click events (without key events) still cause a lint error:
<a (click)="handleClick()">My link</a>
Context and configuration rule: template-click-events-have-key-events tsconfig.json:
tsconfig.base.json:
no codelyzer.js
Expected behavior
The rule should pass for anchor tags with click events, even if they don't have a key event.
Environment