fix: datetime not rendering for empty value

This commit is contained in:
Daniel Lautzenheiser
2023-01-14 22:59:06 -05:00
parent 297d27e162
commit 839059d4f9
4 changed files with 2 additions and 27 deletions

View File

@ -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,

View File

@ -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)/,
],
},