From 2132e46b74fdad485564146c2cda0ab8b8165dad Mon Sep 17 00:00:00 2001 From: Yoann Fleury Date: Mon, 9 Sep 2024 12:32:24 +0200 Subject: [PATCH] fix: invalidate the input on form error (#524) --- 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 }) => (