-
Notifications
You must be signed in to change notification settings - Fork 186
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
Error accessing methods #1
Comments
In our use cases we haven't marked up our own clear button. Instead we use the clearButton prop. The component gives you one and will call clear() for you when pressed. <SignaturePad ref="mySignature" clearButton={true} /> Pull requests welcome if you want to control the clear button further via another prop. Maybe something that allows you to pass in a custom class name or ID for targeting in CSS or custom click behavior... |
@ge3kusa I needed a way to clear, but also save the image. I wasn't able to clear or save. I had to modify the package directly. I can post it if you want to see! Thanks! |
@DClark5218:
|
Hello,
I am having problems accessing the methods you described via Refs.
I keep getting
signature.clear is not a function
Here's my code
Can you help point me in the right direction?
The text was updated successfully, but these errors were encountered: