diff --git a/src/renderer/components/form/Field.tsx b/src/renderer/components/form/Field.tsx index 7b4160dd..7d43225e 100644 --- a/src/renderer/components/form/Field.tsx +++ b/src/renderer/components/form/Field.tsx @@ -129,13 +129,16 @@ const Field: React.FC = ({ ); case 'date': return ( - setFieldValue(name, date.toUTCString())} - placeholder="Select date" - /> + <> + setFieldValue(name, date.toUTCString())} + placeholder="Select date" + {...(initialValue || values[name] ? {} : { value: undefined })} + /> + ); case 'checkbox': return setFieldValue(name, e.target.checked)} />;