fix close modal on submit

This commit is contained in:
ayntk-ai 2024-09-02 21:22:31 +02:00
parent 1b0c5f8d69
commit 5944ee5524
No known key found for this signature in database

View file

@ -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>