Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

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

Open
kultleviom opened this issue Feb 16, 2021 · 4 comments
Open

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

kultleviom opened this issue Feb 16, 2021 · 4 comments

Comments

@kultleviom
Copy link

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

@RidClick
Copy link

Same error over here, any solution?

@Errabaany
Copy link

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

@cdohotaru
Copy link

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).

@Fourie-r
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants