--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalid.jsx --- # Input ```jsx <>
{}} />
{}} />
{}}>foo
``` # Diagnostics ``` invalid.jsx:2:5 lint/a11y/useKeyWithClickEvents ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Enforce to have the onClick mouse event with the onKeyUp, the onKeyDown, or the onKeyPress keyboard event. 1 │ <> > 2 │
{}} /> │ ^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 │
{}} /> 4 │
{}}>foo
i Actions triggered using mouse events should have corresponding keyboard events to account for keyboard-only navigation. ```