@povio/ui 2.3.0-rc.26 → 2.3.0-rc.27
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.
|
@@ -166,7 +166,7 @@ var DateTimePickerBase = (props) => {
|
|
|
166
166
|
dialogState.setValue(state.value);
|
|
167
167
|
return;
|
|
168
168
|
}
|
|
169
|
-
const textValue = e
|
|
169
|
+
const textValue = e?.currentTarget.textContent ?? null;
|
|
170
170
|
const dateTimeValue = DateTimeUtils.formatTextDateToCalendarDateTime(textValue, effectiveTimeZone, locale);
|
|
171
171
|
if (dateTimeValue) {
|
|
172
172
|
state.setValue(dateTimeValue);
|
|
@@ -61,14 +61,12 @@ var DatePickerInput = (t0) => {
|
|
|
61
61
|
t8 = () => {
|
|
62
62
|
dateFieldRef.current?.clearField();
|
|
63
63
|
endDateFieldRef.current?.clearField();
|
|
64
|
+
fieldProps.onChange?.(null);
|
|
65
|
+
endFieldProps?.onChange?.(null);
|
|
64
66
|
if (onClearProp) onClearProp();
|
|
65
|
-
else {
|
|
66
|
-
fieldProps.
|
|
67
|
-
endFieldProps?.
|
|
68
|
-
if (fireBlurOnChange) {
|
|
69
|
-
fieldProps.onBlur?.(null);
|
|
70
|
-
endFieldProps?.onBlur?.(null);
|
|
71
|
-
}
|
|
67
|
+
else if (fireBlurOnChange) {
|
|
68
|
+
fieldProps.onBlur?.(null);
|
|
69
|
+
endFieldProps?.onBlur?.(null);
|
|
72
70
|
}
|
|
73
71
|
setCanClear(false);
|
|
74
72
|
};
|