diff --git a/src/components/events/partials/wizards/NewEventWizard.tsx b/src/components/events/partials/wizards/NewEventWizard.tsx
index 67cdd0ac8f..1815557bed 100644
--- a/src/components/events/partials/wizards/NewEventWizard.tsx
+++ b/src/components/events/partials/wizards/NewEventWizard.tsx
@@ -145,6 +145,7 @@ const NewEventWizard: React.FC<{
steps={steps}
page={page}
setPage={setPage}
+ formik={formik}
completed={pageCompleted}
/>
diff --git a/src/components/shared/wizard/WizardStepperEvent.tsx b/src/components/shared/wizard/WizardStepperEvent.tsx
index d2b9058a13..e0db6086a7 100644
--- a/src/components/shared/wizard/WizardStepperEvent.tsx
+++ b/src/components/shared/wizard/WizardStepperEvent.tsx
@@ -8,11 +8,13 @@ import {
useStepperStyle,
} from "../../../utils/wizardUtils";
import CustomStepIcon from "./CustomStepIcon";
+import { FormikProps } from "formik";
const WizardStepperEvent = ({
steps,
page,
setPage,
+ formik,
completed,
} : {
steps: {
@@ -22,6 +24,7 @@ const WizardStepperEvent = ({
}[],
page: number,
setPage: (num: number) => void,
+ formik: FormikProps
,
completed: Record,
}) => {
const { t } = useTranslation();
@@ -50,6 +53,8 @@ const WizardStepperEvent = ({
}
};
+ const disabled = !(formik.dirty && formik.isValid);
+
return (
label.hidden || (
- handleOnClick(key)}>
+ handleOnClick(key)} disabled={disabled}>
{t(label.translation)}