gruhn / vue-qrcode-reader

A set of Vue.js components for detecting and decoding QR codes.
https://gruhn.github.io/vue-qrcode-reader
MIT License
2.03k stars 330 forks source link

capture="false" does not work in iOS Safari any more #382

Closed hellmediadev closed 9 months ago

hellmediadev commented 9 months ago

Describe the bug passing false to the :capture attribute of <qrcode-capture> should load a file dialog instead of the camera. In iOS 16.6.1 on Safari the camera is loaded as soon as there is a capture attribute - no matter of which value.

To Reproduce This DOM element is created by the template:

Try this element in Safari iOS 16

Desktop (please complete the following information):

gruhn commented 9 months ago

Have you tried

:capture="null" 

like in the demo ? Note, the colon : is important.

hellmediadev commented 9 months ago

Have you tried

:capture="null" 

like in the demo ? Note, the colon : is important.

Thank you for your great support. With null it works.

hellmediadev commented 9 months ago

Would be great to be mentioned in https://gruhn.github.io/select-camera-demo/dist/api/QrcodeCapture.html ❤️

gruhn commented 9 months ago

Huh? How did you find that link? That's not even the old link to the documentation but the GitHub pages deployment for some random side repo I created for debugging 😅

FYI: official documentation is here: https://vue-qrcode-reader.netlify.app/ 😉 (but that one is also worth updating)