qq15725 / modern-screenshot

📸 Quickly generate image from DOM node using HTML5 canvas and SVG
https://toolpkg.com/html-to-image
MIT License
504 stars 36 forks source link

having issue with background clip in textarea #50

Open geminigeek opened 11 months ago

geminigeek commented 11 months ago

Steps To Reproduce

here is a reproduction link [https://stackblitz.com/edit/vitejs-vite-jm8yya?file=src%2FApp.vue]https://stackblitz.com/edit/vitejs-vite-jm8yya?file=src%2FApp.vue

if i download an image for div with same styles its works fine , if i download image for textarea it shows double text

mariodukoskiinfinum commented 7 months ago

@geminigeek experiencing the same issue any updates?

cc: @qq15725

SeoSang commented 4 months ago

@mariodukoskiinfinum

I'm experiencing the same issue. Is there a good solution available?

mariodukoskiinfinum commented 4 months ago

Hey! @SeoSang I've found a workaround, Instead of using a textarea, I've used a div with the contentEditable attribute set to true. This div behaves like a textarea but doesn't have the double text issue when downloading the image. I hope this helps with your use case!