--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalid.jsx --- # Input ```jsx <>
{}} />
{}} />
{}}>foo
``` # Diagnostics ``` invalid.jsx:2:5 lint/a11y/useKeyWithClickEvents FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! 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. i Safe fix: Suppress rule lint/a11y/useKeyWithClickEvents 1 1 │ <> 2 │ - ·····{}}·/> 2 │ + ····{/*·biome-ignore·lint/a11y/useKeyWithClickEvents:··*/} 3 │ + ·····{}}·/> 3 4 │
{}} /> 4 5 │
{}}>foo
```