PejmanNik / jikji

Effortless report generator and reporting tools with React and NodeJS
https://jikji.xyz
MIT License
45 stars 1 forks source link

using Chart Js component at the end of the page breaks the pagination #21

Open ritscAlex opened 11 months ago

ritscAlex commented 11 months ago

If the same component gets used twice, the rendering is not working correctly.

<PageContent>
  <Finance />
  <Finance />
</PageContent>

I used the sandbox example to try the above case.

image

PejmanNik commented 11 months ago

I don't think that is the case, you can render the same component a hundred time: https://codesandbox.io/s/jikji-issue-21-t9s3w4?file=/src/AnnualReport/index.tsx

The issue is the component use ChartJs and there is an issue in applying the layout on the chart depending on the chart position on the page