How to set initial value for SignaturePad and / or access the context? #1821
Unanswered
dannextlogic
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi and thanks for your work! 👍
I'm working on implementing the signature pad in a React form and it looks like items will have to be edited later or state has to persist over page refresh, which makes it that I need to be able to set the initial value of the signature pad somehow.
I'm saving the signature as SVG DataURL
On page refresh, I'm using a DOMParser to extract the paths from the saved dataUrl value, but I don't know where to add them to the context or initial value of the SignaturePad.
Can anyone please help?
Beta Was this translation helpful? Give feedback.
All reactions