amcharts / amcharts5

The newest, fastest, and most advanced amCharts charting library for JavaScript and TypeScript apps.
Other
353 stars 94 forks source link

ForceDirectedTree with topDepth broken again #285

Closed labriola closed 2 years ago

labriola commented 2 years ago

It appears in the last release, if you set a topDepth = 1 and do NOT provide an animation theme, you can lock up the browser

1) Just take your own example. open in codepen or jsfiddle. https://www.amcharts.com/demos/force-directed-tree/ 2) Add a topDepth: 1 to the creation of the force directed instance 3) Remove the animation theme. (root.setThemes([am5themes_Animated.new(root)]);

You will lock the browser in (what appears to be) a recursive loop

labriola commented 2 years ago

There may be more to this as well. I currently have my site locking up users in production because the configuration that worked previously now does a re-layout infinitely

martynasma commented 2 years ago

Thanks for the heads up! We'll need to fix it.

martynasma commented 2 years ago

Fixed in 5.1.5.

[5.1.5] - 2022-02-22

Added

Changed

Fixed

Full change log.

Download options.

Make sure you clear your browser cache after upgrading. And feel free to contact us again if you are still experiencing this issue.