We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f2f7524 + 8bbbe83 commit 1a41e06Copy full SHA for 1a41e06
src/components/signature/Signature.js
@@ -67,7 +67,7 @@ export default class SignatureComponent extends Input {
67
68
setValue(value, flags = {}) {
69
const changed = super.setValue(value, flags);
70
- if (value && this.refs.signatureImage && (!flags.noSign || this.options.readOnly)) {
+ if (value && this.refs.signatureImage && this.options.readOnly) {
71
this.refs.signatureImage.setAttribute('src', value);
72
this.showCanvas(false);
73
}
@@ -142,7 +142,7 @@ export default class SignatureComponent extends Input {
142
this.signaturePad.clear();
143
144
if (this.dataValue) {
145
- this.setDataToSigaturePad();
+ this.signaturePad.fromDataURL(this.dataValue);
146
147
148
0 commit comments