do not allow to edit phone if already specified

This commit is contained in:
DocuSeal
2023-10-28 00:53:16 +03:00
parent 65f491325e
commit 041f362cc4
@@ -28,6 +28,7 @@
> >
<div class="flex justify-between mt-2 -mb-2 md:-mb-4"> <div class="flex justify-between mt-2 -mb-2 md:-mb-4">
<a <a
v-if="!defaultValue"
href="#" href="#"
class="link" class="link"
@click.prevent="isCodeSent = false" @click.prevent="isCodeSent = false"
@@ -48,6 +49,7 @@
:id="field.uuid" :id="field.uuid"
ref="phone" ref="phone"
:value="modelValue || defaultValue" :value="modelValue || defaultValue"
:readonly="!!defaultValue"
class="base-input !text-2xl w-full" class="base-input !text-2xl w-full"
autocomplete="tel" autocomplete="tel"
pattern="^\+[0-9\s\-]+$" pattern="^\+[0-9\s\-]+$"