bubkoo / html-to-image

✂️ Generates an image from a DOM node using HTML5 canvas and SVG.
MIT License
5.66k stars 524 forks source link

toPng in React only captures static JSX within my component and not content rendered by child components? #153

Closed sudwald closed 3 years ago

sudwald commented 3 years ago

I'm running htmlToImage within a React component. Within the div which I am turning into an image, I have some content rendered by static JSX (e.g. headers) and some dynamic content rendered by child components.

I've tried it in a few test contexts and in each case it only renders the static JSX on the page, not anything which my child components are rendering. Is this a limitation of the package or am I doing something wrong / is there a work-around?

vivcat[bot] commented 3 years ago

👋 @sudwald

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

hexdecimal16 commented 3 years ago

how did you solved it?

vivcat[bot] commented 2 years ago

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.