From 7b323ecfa41d5c3856dfc1e37cb511f3bf3e6c85 Mon Sep 17 00:00:00 2001 From: Yoann Fleury Date: Thu, 5 Sep 2024 16:57:20 +0200 Subject: [PATCH] fix: invalidate the input on form error --- src/components/Form/FieldDate/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Form/FieldDate/index.tsx b/src/components/Form/FieldDate/index.tsx index 7ad9b9395..03b7c6b19 100644 --- a/src/components/Form/FieldDate/index.tsx +++ b/src/components/Form/FieldDate/index.tsx @@ -42,7 +42,7 @@ export const FieldDate = < return ( ( + render={({ field: { ref: _ref, ...field }, fieldState }) => (