Issue
Whenever I write an onClick event attribute without an onKeyUp for example, the error Visible, non-interactive elements with click handlers must have at least one keyboard listener is raised by eslint and I can't figure out how to disable this rule. How do I do this?
Solution
'jsx-a11y/click-events-have-key-events': 'off' in your eslint config should disable it.
Answered By - Gabriel Bleu
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.