fix signature re-uploading issue

pull/217/head
Alex Turchyn 2 years ago committed by Pete Matsyburka
parent 5995f2e427
commit 4bbd5c3bcb

@ -49,6 +49,7 @@
>
<IconCamera :width="16" />
<input
:key="uploadImageInputKey"
type="file"
hidden
accept="image/*"
@ -186,7 +187,8 @@ export default {
return {
isSignatureStarted: !!this.previousValue,
isUsePreviousValue: true,
isTextSignature: this.field.preferences?.format === 'typed'
isTextSignature: this.field.preferences?.format === 'typed',
uploadImageInputKey: Math.random().toString()
}
},
computed: {
@ -350,7 +352,7 @@ export default {
reader.readAsDataURL(file)
event.target.value = null
this.uploadImageInputKey = Math.random().toString()
}
},
async submit () {

Loading…
Cancel
Save