kozakdenys / qr-code-styling

Automaticly generate your styled QR code in your web app.
https://qr-code-styling.com
MIT License
1.56k stars 497 forks source link

Multiple svgs show same QRCode #210

Closed Psycarlo closed 1 month ago

Psycarlo commented 4 months ago

Reproduce steps:

  1. Add multiple qrcodes in one page.
  2. They should be of type "svg"

Every QRCode will look the same.

Psycarlo commented 4 months ago

Clip-path uses the same url id when multiple svgs are present.

Psycarlo commented 4 months ago

As per: https://stackoverflow.com/questions/15911717/clippath-in-multiple-svg-tags We should allow the user to pass an id or this be automatically generated so multiple qrcodes on the same page are correctly rendered.

broekema41 commented 2 months ago

Just confirming here that in the browser when there are multiple qr codes on a page the page the content the same code. This is only for the svg implementation the canvas one does not have this issue.

Nayanchandrakar commented 2 months ago

i am using this package in my project is there way currently to add it

kozakdenys commented 1 month ago

Hi @Psycarlo @broekema41 @Nayanchandrakar. This issue should be fixed in version v1.7.1 and above. Please reopen the issue if something doesn't work for you.