This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
Tweak react-a11y-anchors
to ignore href="#"
if onClick
is present
#383
Labels
Domain: Accessibility
Rules around accessibility verification, commonly react-a11y-*.
💀 R.I.P. 💀
Status: In Discussion
Please continue discussing the proposed change before sending a pull request.
Type: Bug
I don't think this part of
react-a11y-anchors
is a valid rule......at least not if
onClick
is presentFrom the article...
If
onmouseover
wasonclick
then this statement is false because the click would do something.Using
<a href="#" onClick="foo()">
to trigger Javascript onClick is a very common pattern.The text was updated successfully, but these errors were encountered: