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

Accessibility buttons interfere with surrounding form #18586

Open
adigourdi opened this issue Feb 27, 2023 · 0 comments
Open

Accessibility buttons interfere with surrounding form #18586

adigourdi opened this issue Feb 27, 2023 · 0 comments
Assignees

Comments

@adigourdi
Copy link

The Accessibility plugin introduces HTML buttons in the clickable elements of a chart

The said buttons don't have a type attribute, and therefore default to type="submit"

This interferes with any form element surrounding the chart(s)

Live demo with steps to reproduce

https://jsfiddle.net/r6g8cny4/

  1. Focus on <input>
  2. Hit Enter

Expected behavior

The form should submit, or the button should handle the default behavior

Actual behavior

The first accessibility button on the chart (the legend in the demo) gets the event and toggles series visibility

Product version

Highcharts: 10.3.3 (latest)

@highsoft-bot highsoft-bot added this to To do in Development-Flow via automation Feb 27, 2023
@bm64 bm64 added the a11y Accessibility related. label Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

4 participants