Skip to content

Commit fcc1998

Browse files
committed
fix:(InputDate): allow empty string and null field values
1 parent ea45dc1 commit fcc1998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ui-components/src/lib/inputs/InputDate/InputDate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const InputDate: FC<InputDateProps> = ({
3838
const [inputValue, setInputValue] = React.useState<DateTime | null>(fieldValue);
3939

4040
useEffect(() => {
41-
if (fieldDateTime.isValid) setInputValue(fieldValue);
41+
if (fieldDateTime.isValid || fieldValue === '' || fieldValue === null) setInputValue(fieldValue);
4242
}, [fieldValue]);
4343

4444
return (

0 commit comments

Comments
 (0)