Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QR code update not working #17

Open
rahulkumarsingh73690 opened this issue Oct 14, 2022 · 2 comments
Open

QR code update not working #17

rahulkumarsingh73690 opened this issue Oct 14, 2022 · 2 comments

Comments

@rahulkumarsingh73690
Copy link

QR code updates when input data changes but when I change the dot type or logo QR code doesn't update. Any way to trigger qr code update ondata change

@scholtz
Copy link
Owner

scholtz commented May 18, 2023

there is demo for the update on input change: https://github.com/scholtz/qrcode-vue3-sample/blob/864df396c9099c1d0f164f09ba984faf3f8c3fa5/src/App.vue#L16

note that if you want to have this feature in vue3 you have regenerate component by adding :key

@NaturalDevCR
Copy link

@scholtz he meant when you change any other option as the dotsOption.

The ugly and hacky way I used to workaround this was using a v-if and a deep watcher to re-render the component when changes are detected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants