fix: datetime not rendering for empty value
This commit is contained in:
@ -158,10 +158,6 @@ const DateTimeControl: FC<WidgetControlProps<string, DateTimeField>> = ({
|
||||
);
|
||||
|
||||
const dateTimePicker = useMemo(() => {
|
||||
if (!internalValue) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const inputDate = field.picker_utc ? utcDate : dateValue;
|
||||
|
||||
if (dateFormat && !timeFormat) {
|
||||
@ -258,7 +254,6 @@ const DateTimeControl: FC<WidgetControlProps<string, DateTimeField>> = ({
|
||||
handleChange,
|
||||
hasErrors,
|
||||
inputFormat,
|
||||
internalValue,
|
||||
isDisabled,
|
||||
label,
|
||||
t,
|
||||
|
@ -29,6 +29,7 @@ module.exports = {
|
||||
exclude: [
|
||||
/(node_modules[\\/]@toast-ui[\\/]editor[\\/]dist)/,
|
||||
/(node_modules[\\/]nth-check[\\/]lib)/,
|
||||
/(node_modules[\\/]minimatch[\\/]dist)/,
|
||||
/(src[\\/]formats[\\/]util)/,
|
||||
],
|
||||
},
|
||||
|
Reference in New Issue
Block a user