Skip to content

Commit

Permalink
Merge pull request #12 from Casecommons/4.8.0.signature-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Katy Feng authored Apr 2, 2021
2 parents f2f7524 + 8bbbe83 commit 1a41e06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/signature/Signature.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default class SignatureComponent extends Input {

setValue(value, flags = {}) {
const changed = super.setValue(value, flags);
if (value && this.refs.signatureImage && (!flags.noSign || this.options.readOnly)) {
if (value && this.refs.signatureImage && this.options.readOnly) {
this.refs.signatureImage.setAttribute('src', value);
this.showCanvas(false);
}
Expand Down Expand Up @@ -142,7 +142,7 @@ export default class SignatureComponent extends Input {
this.signaturePad.clear();

if (this.dataValue) {
this.setDataToSigaturePad();
this.signaturePad.fromDataURL(this.dataValue);
}
}
}
Expand Down

0 comments on commit 1a41e06

Please sign in to comment.