fix close modal on submit
This commit is contained in:
parent
1b0c5f8d69
commit
5944ee5524
1 changed files with 2 additions and 2 deletions
|
|
@ -271,13 +271,13 @@ class="relative w-full py-6 border rounded min-w-full lg:min-w-[36rem] max-w-[48
|
|||
</template>
|
||||
|
||||
<template x-if="step === 2">
|
||||
<x-forms.button @click="confirmWithPassword ? step++ : submitForm()" x-bind:disabled="confirmWithText && userConfirmationText !== confirmationText" class="w-auto" isError>
|
||||
<x-forms.button @click="confirmWithPassword ? step++ : (submitForm(), modalOpen = false)" x-bind:disabled="confirmWithText && userConfirmationText !== confirmationText" class="w-auto" isError>
|
||||
<span x-text="step2ButtonText"></span>
|
||||
</x-forms.button>
|
||||
</template>
|
||||
|
||||
<template x-if="step === 3 && confirmWithPassword">
|
||||
<x-forms.button @click="submitForm()" class="w-auto" isError x-bind:disabled="!password">
|
||||
<x-forms.button @click="submitForm() && (modalOpen = false)" class="w-auto" isError x-bind:disabled="!password">
|
||||
<span x-text="step3ButtonText"></span>
|
||||
</x-forms.button>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Reference in a new issue