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

signaturePad.fromData(data) is not setting internal _data variable. (v 2.2.0) #271

Closed
lpotthast opened this issue Jul 16, 2017 · 1 comment
Labels
Milestone

Comments

@lpotthast
Copy link

Hello,

i do not know if it is intended bahaviour, but using signaturePad.fromData(data) always leaves the _data variable of the SignaturePad object empty.
This results into an empty array being returned if signaturePad.toData() gets called afterwards.

Setting _data manually has fixed the problem for me however.

sig_pad.fromData(data);
sig_pad._data = data;

@szimek szimek added the bug label Jul 16, 2017
@szimek szimek added this to the 2.2.1 milestone Jul 16, 2017
@szimek
Copy link
Owner

szimek commented Jul 16, 2017

@inf0rm4tik3r Hey, could you create a PR for this issue?

@szimek szimek closed this as completed in fa11481 Jul 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants