@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
- setDate(newDate);
174
- onChange && handleChange(newDate);
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@majoo-ui/react",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "main": "./index.esm.js",
5
5
  "sideEffects": [
6
6
  "*.css",