Skip to content

Commit

Permalink
FIO-4953: Fixed an issue where signature component was not populating…
Browse files Browse the repository at this point in the history
… the data properly. (formio#4677)
  • Loading branch information
travist authored Apr 20, 2022
1 parent 7ef8a3d commit 191d56d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/signature/Signature.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export default class SignatureComponent extends Input {
backgroundColor: this.component.backgroundColor
});

this.signaturePad.onEnd = () => this.setValue(this.signaturePad.toDataURL());
this.signaturePad.addEventListener('endStroke', () => this.setValue(this.signaturePad.toDataURL()));
this.refs.signatureImage.setAttribute('src', this.signaturePad.toDataURL());

this.onDisabled();
Expand Down

0 comments on commit 191d56d

Please sign in to comment.