qr-code-styling icon indicating copy to clipboard operation
qr-code-styling copied to clipboard

Using 2 text SVG elements in extension does not allow to download

Open camillo777 opened this issue 1 year ago • 1 comments

Hello, I have this problem in an extension: using 1 SVG text allows to download PNG, but using 2 SVG text does not allow to download PNG.

qrCode.download({` name: "qr", extension: "png" })

See the pen here: https://codepen.io/camillo777/pen/oNKGVRB

Click on "Generate QR" then "Save QR"

Remove/comment this line (54):

svg.appendChild(text2);`

to be able to download PNG

camillo777 avatar Oct 23 '24 13:10 camillo777

Hi @camillo777 It's weird behaviour I found that you still can download svg file. But png doesn't work

kozakdenys avatar Oct 23 '24 13:10 kozakdenys