@ceed/cds 1.2.4-next.3 → 1.2.5
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.
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/framer/index.js +10 -10
- package/package.json +2 -3
package/dist/index.cjs
CHANGED
|
@@ -2326,9 +2326,9 @@ var DatePicker = (0, import_react18.forwardRef)(
|
|
|
2326
2326
|
]);
|
|
2327
2327
|
const handleChange = (0, import_react18.useCallback)(
|
|
2328
2328
|
(event) => {
|
|
2329
|
-
const
|
|
2330
|
-
setDisplayValue(formatValueString(
|
|
2331
|
-
setValue(
|
|
2329
|
+
const value2 = event.target.value;
|
|
2330
|
+
setDisplayValue(value2 ? formatValueString(parseDate(event.target.value, format), displayFormat) : value2);
|
|
2331
|
+
setValue(value2);
|
|
2332
2332
|
},
|
|
2333
2333
|
[displayFormat, format, setValue]
|
|
2334
2334
|
);
|
package/dist/index.js
CHANGED
|
@@ -2280,9 +2280,9 @@ var DatePicker = forwardRef6(
|
|
|
2280
2280
|
]);
|
|
2281
2281
|
const handleChange = useCallback7(
|
|
2282
2282
|
(event) => {
|
|
2283
|
-
const
|
|
2284
|
-
setDisplayValue(formatValueString(
|
|
2285
|
-
setValue(
|
|
2283
|
+
const value2 = event.target.value;
|
|
2284
|
+
setDisplayValue(value2 ? formatValueString(parseDate(event.target.value, format), displayFormat) : value2);
|
|
2285
|
+
setValue(value2);
|
|
2286
2286
|
},
|
|
2287
2287
|
[displayFormat, format, setValue]
|
|
2288
2288
|
);
|