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
Unfortunately, it does that in a setTimeout, and there is no way to disable this setTimeout, even by disabling accessibility or adding the accessibility module, because the checks are done in the setTimeout callback itself. So, this setTimeout is always executed, no matter what.
It might not seem like a big deal, but we have tests (in an Angular application), using a "fakeAsync" zone where tests fail shen a timer is still in the queue. And this timeout does that: it introduces a new, unexpected timer, in the queue.
Product version
Highcharts 10.1.0
Affected browser(s)
All
The text was updated successfully, but these errors were encountered:
A workaround could be to override the warning function before creating the charts in the tests: Highcharts.Chart.prototype.warnIfA11yModuleNotLoaded = () => {};Live demo.
We will also look into if there is a robust way to handle this on our end without using timers.
Hi @oysteinmoseng. Thanks. That's exactly the workaround we used. But it's a dirty hack, especially with TypeScript which doesn't know about the warnIfA11yModuleNotLoaded property.
Thanks for investigating a cleaner way.
Version 10.1.0 introduced an error message in case the accessibility module is not loaded. See the change here: https://github.com/highcharts/highcharts-dist/blob/master/es-modules/Core/Chart/Chart.js#L1953-L1966
Unfortunately, it does that in a setTimeout, and there is no way to disable this setTimeout, even by disabling accessibility or adding the accessibility module, because the checks are done in the setTimeout callback itself. So, this setTimeout is always executed, no matter what.
It might not seem like a big deal, but we have tests (in an Angular application), using a "fakeAsync" zone where tests fail shen a timer is still in the queue. And this timeout does that: it introduces a new, unexpected timer, in the queue.
Product version
Highcharts 10.1.0
Affected browser(s)
All
The text was updated successfully, but these errors were encountered: