screenshot different from DOM
Closed this issue · 6 comments
fcpauldiaz commented
fcpauldiaz commented
Actually, this is related to html2canvas, so closing it
shiraleeana commented
Hi @fcpauldiaz – did you figure out how to get rid of the shadows?
fcpauldiaz commented
Hi @shiraleeana the shadows are an issue of the underlying library html2canvas
. The workaround I'm using is disabling the shadows of the components only right before taking the screenshot and then re-enabling them after.
shiraleeana commented
Ok I see. Thanks for that.
shiraleeana commented
Found a solution for myself:
I just had a box shadow on my "card" which needed to be screenshot.
So I added an extra div inside the card and used that as the ref
for the screenshot instead – no shadow issues.
requenahdz commented
The dropdown has to be outside of your reference