michaeldzjap / react-signature-pad-wrapper

A React wrapper for signature pad
MIT License
199 stars 27 forks source link

How to get a callback when a change happens in the signature pad? #17

Closed francos closed 4 years ago

francos commented 4 years ago

Hi,

I'm trying to get a callback when a change happens in the signature pad so that I can enable/disable a button that allows the user to go to the next step of a process depending on whether they entered a signature or not.

Is there a way to do this? I tried using onChange but that didn't get called at all.

francos commented 4 years ago

After checking the source code in more detail I found that I could use the onEnd() callback inside the options property.