Skip to content

Commit

Permalink
Fixed editing existing signature.
Browse files Browse the repository at this point in the history
  • Loading branch information
roflanKisel authored and Katyf committed Apr 2, 2021
1 parent f2f7524 commit 8bbbe83
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 8bbbe83

Please sign in to comment.