qrcodejs icon indicating copy to clipboard operation
qrcodejs copied to clipboard

update qrcode.clear() method

Open aasdkl opened this issue 9 years ago • 2 comments

update qrcode.clear() method and it can be used when useSVG=false add the useSVG in options and update the README.md

aasdkl avatar Sep 16 '16 09:09 aasdkl

@steplegionnare i encounter the same isssue, trid clear the src attribute on img tag, worked on android, however failed on iphone. the workout for me is clear all inner html of the qrcode container. for example: generate: qrcode = new QRCode($('#qrcode')[0]) clear: $('#qrcode').html('');

shoaly avatar Feb 25 '17 01:02 shoaly

I think clearing inner HTML manually is not proper thing to do) .clear() method needs to be modified to work everywhere)

NightSpirit152 avatar Dec 10 '24 20:12 NightSpirit152