@majoo-ui/react 2.4.2 → 2.4.3
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.
|
@@ -170,8 +170,10 @@ const NativeTimePicker = ({
|
|
|
170
170
|
onChange(e, moment(e).format(format));
|
|
171
171
|
}
|
|
172
172
|
function setNewDate(newDate) {
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
// minDate/maxDate arrive as Date; onChange consumers call moment methods (toDate, format)
|
|
174
|
+
const nextDate = moment(newDate);
|
|
175
|
+
setDate(nextDate);
|
|
176
|
+
onChange && handleChange(nextDate);
|
|
175
177
|
}
|
|
176
178
|
function handleUp(type) {
|
|
177
179
|
if (!disabled) {
|