You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered: