legalthings / angular-signature

HTML5 canvas based smooth signature drawing as angularJS directive (http://szimek.github.io/signature_pad/)
MIT License
105 stars 91 forks source link

Expression 'undefined' in attribute 'dataurl' used with directive 'signaturePad' is non-assignable #32

Closed johhansantana closed 7 years ago

johhansantana commented 7 years ago

I'm getting this weird console error sometimes whenever I write on the signature canvas.

The signature is working correctly and saving as it's suppose to but this pops up now and then.

<signature-pad accept="accept" clear="clear" ng-model="signature" height="220" width="568"></signature-pad>
          <button ng-click="clear()">Clear signature</button>
          <button ng-click="signature = accept(); checkSign(signature)">Sign</button>
kevinsuzc commented 7 years ago

add dataurl="" to the element of signature-pad

jasny commented 7 years ago

@kevinsuzc Thanks for you comment. I'll leave this ticket open, because dataurl should be optional.

jasny commented 7 years ago

This is already reported #14