From 03fd976504c8943ada57df92d1b0d6537a7e4c76 Mon Sep 17 00:00:00 2001 From: edleeks87 Date: Mon, 9 Jan 2023 10:28:43 +0000 Subject: [PATCH] fix(form): update onSubmit type Updates the `onSubmit` type so that the `Form` component can be used in conjunction with external libraries such as `Formik` fix #5659 --- src/components/form/form.component.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/form/form.component.tsx b/src/components/form/form.component.tsx index ec9262d908..c6682e17bc 100644 --- a/src/components/form/form.component.tsx +++ b/src/components/form/form.component.tsx @@ -28,7 +28,7 @@ export interface FormProps extends SpaceProps { /** Disable HTML5 validation */ noValidate?: boolean; /** Callback passed to the form element */ - onSubmit?: React.FormEventHandler; + onSubmit?: React.FormEventHandler; /** Additional buttons rendered on the right side of the save button */ rightSideButtons?: React.ReactNode; /** Save button to be rendered */