Closed cryptoTeq closed 1 year ago
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!
I have the same problem, still not solved.
still not solved
a work around is to wrap your component in a div with for instance an id and get the element by selecting it from the dom instead of using a ref :
const downloadpie = () => { ... const PieCanvas = document.getElementById('pieCanvas').querySelector('canvas'); ... }
Is there any solution for this @plouc @wyze @tkonopka Please let me know
There's no solution atm, it needs to be implemented, but you could use the workaround suggested by @YMMTech in the meantime.
ok @plouc Thank you
Describe/explain the bug
ref
to Canvas element isundefined
inPie
/ResponsivePieCanvas
charts. But it works perfectly fine in theResponsiveBarCanvas
and returns a reference to the Canvas.To Reproduce Please check the CodeSandBox. CodeSandBox 1) Click on the button on the top 2) Check the value in the console
Expected behavior
ref
contains a reference to the html canvas.Screenshots![image](https://user-images.githubusercontent.com/74078094/175989690-af985a80-84a5-4565-af2f-531450a27d74.png)