angular2-signaturepad icon indicating copy to clipboard operation
angular2-signaturepad copied to clipboard

this.sigaturePad.set('canvasWidth', value) giving error

Open kultleviom opened this issue 4 years ago • 4 comments

I'm experiencing an error when trying to set canvas width on window:resize. Is there anything wrong with my code?

The error: ERROR TypeError: Cannot set property 'width' of undefined at SignaturePad.set (angular2-signaturepad.js:92)

https://stackblitz.com/edit/angular-ivy-e5bhdv

kultleviom avatar Feb 16 '21 20:02 kultleviom

Same error over here, any solution?

RidClick avatar Feb 17 '21 16:02 RidClick

I fixed the problem by downgrade the version to 2.8.0. run: npm uninstall angular2-signaturepad npm install [email protected]

Errabaany avatar Apr 06 '21 08:04 Errabaany

Having the same issue with version 2.11.1.

There seem to be some modules renaming in this version as well which brakes my build. Nothing that can't be fixed thou (except for the width thing).

cdohotaru avatar Apr 16 '21 10:04 cdohotaru

Same issue. Downgrading to version 2.8 solves the problem but we need a fix.

Fourie-r avatar Apr 27 '21 12:04 Fourie-r