@topconsultnpm/sdkui-react-beta 6.5.72 → 6.5.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -62,17 +62,9 @@ const TMDateBox = (props) => {
|
|
|
62
62
|
return;
|
|
63
63
|
if (!e.value)
|
|
64
64
|
return;
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
currentDate.setHours(0, 0, 0, 0);
|
|
69
|
-
e.component.option("value", currentDate.toISOString());
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
// If type is 'datetime', get the hours from the input value
|
|
73
|
-
const newValue = new Date(e.value);
|
|
74
|
-
e.component.option("value", newValue.toISOString());
|
|
75
|
-
}
|
|
65
|
+
const currentDate = new Date(e.value);
|
|
66
|
+
currentDate.setHours(0, 0, 0, 0);
|
|
67
|
+
e.component.option("value", currentDate.toISOString());
|
|
76
68
|
} }), _jsx(TMVilViewer, { vil: props.validationItems })] }));
|
|
77
69
|
};
|
|
78
70
|
export default TMDateBox;
|