diff --git a/src/components/dateTimePickerInput.js b/src/components/dateTimePickerInput.js index dfe58be43..606238d0f 100644 --- a/src/components/dateTimePickerInput.js +++ b/src/components/dateTimePickerInput.js @@ -134,8 +134,6 @@ datetimeFormat, ); - if (!parsedValue) return; - if (isValidDate(formatDefaultParse)) { setSelectedDate(formatDefaultParse); } else { @@ -160,6 +158,8 @@ default: } + } else { + setSelectedDate(null); } }, [parsedValue]); @@ -216,6 +216,8 @@ } }; + console.log({ selectedDate }); + const DateTimeCmp = (