From 3004280c8ed74bdd8e70f791fb672e885c16edf8 Mon Sep 17 00:00:00 2001 From: jim-sheldon <5619539+jim-sheldon@users.noreply.github.com> Date: Sat, 23 Mar 2024 12:40:20 -0400 Subject: [PATCH] Fixes date fields autofilling on edit --- .../ui/src/components/common-form-fields/FormikFields.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/verification/curator-service/ui/src/components/common-form-fields/FormikFields.tsx b/verification/curator-service/ui/src/components/common-form-fields/FormikFields.tsx index 2bfb4e5ca..608256d9b 100644 --- a/verification/curator-service/ui/src/components/common-form-fields/FormikFields.tsx +++ b/verification/curator-service/ui/src/components/common-form-fields/FormikFields.tsx @@ -193,6 +193,8 @@ interface DateFieldProps { export function DateField(props: DateFieldProps): JSX.Element { const classes = useStyles(); + const dateValue = props.value || 'yyyy/MM/dd'; + return (
@@ -204,7 +206,7 @@ export function DateField(props: DateFieldProps): JSX.Element { mask="____/__/__" minDate={new Date('2019/12/01')} disableFuture - value={props.value} + value={dateValue} onChange={props.onChange} renderInput={(params) => (