fix: disable last step button wizard after submission

This commit is contained in:
Arman committed 2023-09-06 15:55:36 +02:00
1 parent 5b8c40afce
commit 1eca2e934c
1 file changed
+5
+5
View File
@@ -74,8 +74,13 @@
wizard.setInterceptor(null);
if (isLastStep) {
$wizard.nextDisabled = true;
trackEvent('wizard_finish');
dispatch('finish');
//Reactivate button in case there are errors
setTimeout(() => {
$wizard.nextDisabled = false;
}, 2000);
} else {
trackEvent('wizard_next');
$wizard.step++;