thread-pond / signature-pad

A jQuery plugin for assisting in the creation of an HTML5 canvas based signature pad. Records the drawn signature in JSON for later regeneration.
BSD 3-Clause "New" or "Revised" License
727 stars 292 forks source link

On draw, it validates form automatically #164

Closed webmasterkarthi closed 8 years ago

webmasterkarthi commented 8 years ago

I have used jquery validate plugin to validate my form. When i click on the space to draw, it automatically validates the form. It doesn't affect any functionalities but it doesn't look good. Somewhere it triggers validate. Please let me know how to get rid off.

thomasjbradley commented 8 years ago

Does the jQuery Validate plugin fire when inputs lose focus?

webmasterkarthi commented 8 years ago

Yes, it validates input field when focusout.

thomasjbradley commented 8 years ago

Signature pad does some focusing stuff so that could be it, on this line here: https://github.com/thomasjbradley/signature-pad/blob/gh-pages/jquery.signaturepad.js#L399

Maybe try commenting that out and see if it works.

webmasterkarthi commented 8 years ago

Thankyou.. I fixed it by removing jquery validation on focus out.