Skip to content

Commit aa8d9f6

Browse files
Merge pull request #532 from appwrite/fix-wizard-disable-after-submission
fix: disable last step button wizard after submission
2 parents 01a12d2 + 1eca2e9 commit aa8d9f6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/lib/layout/wizard.svelte

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,13 @@
7474
7575
wizard.setInterceptor(null);
7676
if (isLastStep) {
77+
$wizard.nextDisabled = true;
7778
trackEvent('wizard_finish');
7879
dispatch('finish');
80+
//Reactivate button in case there are errors
81+
setTimeout(() => {
82+
$wizard.nextDisabled = false;
83+
}, 2000);
7984
} else {
8085
trackEvent('wizard_next');
8186
$wizard.step++;

0 commit comments

Comments
 (0)