Skip to content

Commit 1a41e06

Browse files
author
Katy Feng
authored
Merge pull request #12 from Casecommons/4.8.0.signature-fix
2 parents f2f7524 + 8bbbe83 commit 1a41e06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/signature/Signature.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default class SignatureComponent extends Input {
6767

6868
setValue(value, flags = {}) {
6969
const changed = super.setValue(value, flags);
70-
if (value && this.refs.signatureImage && (!flags.noSign || this.options.readOnly)) {
70+
if (value && this.refs.signatureImage && this.options.readOnly) {
7171
this.refs.signatureImage.setAttribute('src', value);
7272
this.showCanvas(false);
7373
}
@@ -142,7 +142,7 @@ export default class SignatureComponent extends Input {
142142
this.signaturePad.clear();
143143

144144
if (this.dataValue) {
145-
this.setDataToSigaturePad();
145+
this.signaturePad.fromDataURL(this.dataValue);
146146
}
147147
}
148148
}

0 commit comments

Comments
 (0)