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
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v8.x
Current Behavior
On a project using React.js, Vite, Ionic and Chart.js we can observe a weird interaction between the IonRouterOutlet and charts.
Even if the outlet has disabled animation, on loading the chart, it will make a really basic interaction, scaling the whole static chart from it top-left corner to it's normal scale, instead of for exemple growing each bars independently.
The current workaround I found is to more or less delay the adding of the chart in my DOM. In my app, I can even get rid of the setTimeout (check the exemple) and it works, probably because it takes a bit more time to load because of all my components.
Expected Behavior
Don't know what the outlet should do, since I don't really know what it currently do. But the fact is it break the chartjs animations, and it should not.
Steps to Reproduce
Go to the stackblitz project, and load the page.
The top chart is the current behaviour without my workaround. The second enables the setTimeout workaround.
Prerequisites
Ionic Framework Version
v8.x
Current Behavior
On a project using
React.js
,Vite
,Ionic
andChart.js
we can observe a weird interaction between theIonRouterOutlet
and charts.Even if the outlet has disabled animation, on loading the chart, it will make a really basic interaction, scaling the whole static chart from it top-left corner to it's normal scale, instead of for exemple growing each bars independently.
The current workaround I found is to more or less delay the adding of the chart in my DOM. In my app, I can even get rid of the setTimeout (check the exemple) and it works, probably because it takes a bit more time to load because of all my components.
Expected Behavior
Don't know what the outlet should do, since I don't really know what it currently do. But the fact is it break the chartjs animations, and it should not.
Steps to Reproduce
Go to the stackblitz project, and load the page.
The top chart is the current behaviour without my workaround. The second enables the setTimeout workaround.
Code Reproduction URL
https://stackblitz.com/edit/vitejs-vite-1zdsn9jm?file=src%2FApp.jsx
Ionic Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: