remove onChange handler

Signed-off-by: Paul Cowan <paul.cowan@cutting.scot>
This commit is contained in:
Paul Cowan
2022-11-16 15:56:24 +00:00
parent 8e3a366dc4
commit dff3af350b
@@ -152,18 +152,6 @@ export const Stepper = (props: StepperProps) => {
fields={extensions}
showErrorList={false}
transformErrors={props.transformErrors}
// this is needed because handleNext is really triggering the validation
// which only happens onSubmit
onChange={({ formData, schema }) => {
if (props.transformErrors) {
validator.validateFormData(
formData,
schema,
undefined,
props.transformErrors,
);
}
}}
>
<div className={styles.footer}>
<Button