You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Disabling keyboard navigation doesn't take full effect until the chart is re-rendered #19374
I have a grid containing many charts. I want to use roving tab indices to reduce the number of tab actions required to navigate through the grid via keyboard.
I am trying to accomplish this by dynamically updating accessibility.keyboardNavigation.enabled so that only the chart in the active cell is included in the tab order.
The problematic behavior is that updating the setting from true to false should remove all tab stops from the chart but does not.
Actual behaviour
.highcharts-exit-anchor elements are not being removed until the chart re-renders.
After some digging, I discovered that I can partially work around the issue by manually invoking chart.updateA11yEnabled() after updating the option. Currently it seems this is only invoked after the chart is rendered, but since the chart did not require re-rendering in my scenario, it requires a manual invocation. This seems to be an internal method so I would prefer not to depend on it directly. I have noticed it being flaky sometimes as well so would be great to have a fix from Highcharts.
@kycutler Thanks for reporting! We should fix this behavior internally, yes.
Just a general note on reducing the number of tab stops (also for other people stumbling upon this issue): Removing elements from the accessibility.keyboardNavigation.order array in the options will give you less tab stops per chart.
Activity
oysteinmoseng commentedon Aug 7, 2023
@kycutler Thanks for reporting! We should fix this behavior internally, yes.
Just a general note on reducing the number of tab stops (also for other people stumbling upon this issue): Removing elements from the
accessibility.keyboardNavigation.orderarray in the options will give you less tab stops per chart.Fixed #19374, disabled keyboardNavigation didn't remove the exit anchor.
Fixed #19374, disabled keyboardNavigation didn't remove the exit anchor.