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

Cannot clear signature if bgColour = 'transparent' #18

Closed
dancrew32 opened this issue Nov 22, 2011 · 1 comment
Closed

Cannot clear signature if bgColour = 'transparent' #18

dancrew32 opened this issue Nov 22, 2011 · 1 comment

Comments

@dancrew32
Copy link
Contributor

1.) setup demo (google chrome, latest)
2.) var pad = $('.sigPad').signaturePad({ bgColour: 'transparent' });
3.) draw signature
4.) pad.clearCanvas()
5.) observe how signature remains (expected: signature cleared)

The signature clears just fine if bgColour is is '#fff' or any other hex value. Would love for it to work with transparency so that you can style custom backgrounds.

@dancrew32
Copy link
Contributor Author

wondering if there is some easy method to destroy the signature before you clear the canvas here: https://github.com/thomasjbradley/signature-pad/blob/master/jquery.signaturepad.js#L243

dancrew32 added a commit to dancrew32/signature-pad that referenced this issue Nov 22, 2011
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

2 participants