Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigating beyond the end of legend items with arrow keys throws an error. #19621

Closed
tsvdb opened this issue Aug 24, 2023 · 1 comment · Fixed by #19640
Closed

Navigating beyond the end of legend items with arrow keys throws an error. #19621

tsvdb opened this issue Aug 24, 2023 · 1 comment · Fixed by #19640

Comments

@tsvdb
Copy link

tsvdb commented Aug 24, 2023

Expected behaviour

No error should be thrown.

Actual behaviour

The console in the DevTools shows this output:

Uncaught TypeError: Cannot read properties of undefined (reading 'legendItem')
    at ea.b [as highlightLegendItem] (accessibility.src.js:3846:65)
    at G.onKbdArrowKey (accessibility.src.js:3778:29)
    at u.keyCodeMap (accessibility.src.js:3741:40)
    at q.run (accessibility.src.js:1302:32)
    at a.onKeydown (accessibility.src.js:3217:38)
    at HTMLDivElement.<anonymous> (accessibility.src.js:3060:71)

Live demo with steps to reproduce

https://jsfiddle.net/v8fp7z34/
Navigate through the legend items using the arrow keys and press the right or downwards arrow key when focusing the last legend item or press the left or upwards arrow key when focusing the first legend item.

Product version

Highcharts 11.1.0

Affected browser(s)

Firefox, Chrome, Edge

@highsoft-bot highsoft-bot added this to To do in Development-Flow via automation Aug 24, 2023
@bm64 bm64 added Product: Highcharts a11y Accessibility related. labels Aug 24, 2023
@oysteinmoseng
Copy link
Member

Thank you for reporting! We will prioritize this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

4 participants