We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea45dc1 commit fcc1998Copy full SHA for fcc1998
packages/ui-components/src/lib/inputs/InputDate/InputDate.tsx
@@ -38,7 +38,7 @@ export const InputDate: FC<InputDateProps> = ({
38
const [inputValue, setInputValue] = React.useState<DateTime | null>(fieldValue);
39
40
useEffect(() => {
41
- if (fieldDateTime.isValid) setInputValue(fieldValue);
+ if (fieldDateTime.isValid || fieldValue === '' || fieldValue === null) setInputValue(fieldValue);
42
}, [fieldValue]);
43
44
return (
0 commit comments