optional initials
This commit is contained in:
@@ -169,7 +169,7 @@
|
|||||||
class="base-input !text-2xl w-full mt-6 text-center"
|
class="base-input !text-2xl w-full mt-6 text-center"
|
||||||
:required="field.required && !isInitialsStarted"
|
:required="field.required && !isInitialsStarted"
|
||||||
:aria-label="field.name || t('initials')"
|
:aria-label="field.name || t('initials')"
|
||||||
:placeholder="`${t('type_initial_here')}...`"
|
:placeholder="`${t('type_initial_here')}${field.required ? '...' : ' (' + t('optional') + ')'}`"
|
||||||
type="text"
|
type="text"
|
||||||
@focus="$emit('focus')"
|
@focus="$emit('focus')"
|
||||||
@input="updateWrittenInitials"
|
@input="updateWrittenInitials"
|
||||||
@@ -293,7 +293,7 @@ export default {
|
|||||||
|
|
||||||
if (!this.isDrawInitials) {
|
if (!this.isDrawInitials) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (this.$refs.textInput) {
|
if (this.$refs.textInput && this.field.required === true) {
|
||||||
this.initTextInitial()
|
this.initTextInitial()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -247,7 +247,7 @@
|
|||||||
class="base-input !text-2xl w-full mt-6"
|
class="base-input !text-2xl w-full mt-6"
|
||||||
:required="field.required && !isSignatureStarted"
|
:required="field.required && !isSignatureStarted"
|
||||||
:aria-label="field.name || t('signature')"
|
:aria-label="field.name || t('signature')"
|
||||||
:placeholder="`${t('type_signature_here')}...`"
|
:placeholder="`${t('type_signature_here')}${field.required ? '...' : ' (' + t('optional') + ')'}`"
|
||||||
type="text"
|
type="text"
|
||||||
@input="updateWrittenSignature"
|
@input="updateWrittenSignature"
|
||||||
>
|
>
|
||||||
@@ -535,7 +535,7 @@ export default {
|
|||||||
this.$nextTick(() => this.drawSignatureSrc())
|
this.$nextTick(() => this.drawSignatureSrc())
|
||||||
} else if (this.isTextSignature) {
|
} else if (this.isTextSignature) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (this.$refs.textInput) {
|
if (this.$refs.textInput && this.field.required === true) {
|
||||||
this.initTypedSignature()
|
this.initTypedSignature()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user