fix signature re-uploading issue
This commit is contained in:
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 () {
|
||||
|
||||
Reference in New Issue
Block a user