From e8d2ab0fac3c6718a970bd1fbc8199e1b29585af Mon Sep 17 00:00:00 2001 From: Maxime Lalo Date: Mon, 15 May 2023 18:36:56 +0200 Subject: [PATCH] :bug: Prevent default on form --- src/front/Components/DesignSystem/Form/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/front/Components/DesignSystem/Form/index.tsx b/src/front/Components/DesignSystem/Form/index.tsx index 4c42f611..7ad9b593 100644 --- a/src/front/Components/DesignSystem/Form/index.tsx +++ b/src/front/Components/DesignSystem/Form/index.tsx @@ -59,6 +59,7 @@ export default class Form extends React.Component { } public async onSubmit(e: React.FormEvent | null) { + e?.preventDefault(); const allChildren = this.getAllChildrenFields(e); const elementsValues = allChildren .filter((e) => {