diff --git a/webapp/packages/core-blocks/src/FormControls/useForm.ts b/webapp/packages/core-blocks/src/FormControls/useForm.ts index 0466701ef0..6a534d06f0 100644 --- a/webapp/packages/core-blocks/src/FormControls/useForm.ts +++ b/webapp/packages/core-blocks/src/FormControls/useForm.ts @@ -89,11 +89,13 @@ export function useForm(options?: IOptions): IFormContext { async submit(event) { if (this.parent) { await this.parent.submit(event); + this.ref?.reset(); } else { event?.preventDefault(); if (this.validate()) { await this.onSubmit.execute(event); + this.ref?.reset(); } } },