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

Signature pad isnt working in modal #652

Closed
adam-papp98 opened this issue Sep 13, 2022 · 4 comments
Closed

Signature pad isnt working in modal #652

adam-papp98 opened this issue Sep 13, 2022 · 4 comments

Comments

@adam-papp98
Copy link

Signature pad is not working in modal. I use Vue.js where i have at start v-if set on false in canvas and when i change v-if on true canvas show but doesnt work.

image
Is there any option how to do it ? I saw last issue with this title but there was not correct answer.

@UziTech
Copy link
Collaborator

UziTech commented Sep 14, 2022

Can you create a repo with a minimal reproduction?

@adam-papp98
Copy link
Author

CreateOwnDocument.txt
Dialog.txt
I add you my two files here. I hope it will be enought.
I have component in vue Dialog its modal window witch i call in my file CreateOwnDoument.
When i have variable showSignDialog on true at start everythink is ok but when i set it on false at start signiture pad is not working

@UziTech
Copy link
Collaborator

UziTech commented Sep 14, 2022

My guess is that switching it to true creates a new canvas element that doesn't have signature pad attached. Can you initialize signature pad after setting it to true?

@adam-papp98
Copy link
Author

I found the problem, i used 2 same canvas and they fought each other. So thank you for help.

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

No branches or pull requests

2 participants