@gisce/react-ooui 1.1.42 → 1.1.43

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.
@@ -22717,8 +22717,10 @@ const DatePickerConfig = {
22717
22717
  readOnly: s
22718
22718
  } = n, u = t == null ? void 0 : t.split(","), [l, c] = useState([]), [d, f] = useState();
22719
22719
  return useEffect(() => {
22720
- if (!t)
22720
+ if (!t) {
22721
+ f(void 0), c([]);
22721
22722
  return;
22723
+ }
22722
22724
  const p = t && u && u[0], h = t && u && u[1] && parseInt(u[1]);
22723
22725
  c([h, void 0]), f(p);
22724
22726
  }, [t]), /* @__PURE__ */ jsxs(Row, {
@@ -22734,7 +22736,11 @@ const DatePickerConfig = {
22734
22736
  required: a
22735
22737
  }),
22736
22738
  onChange: (p) => {
22737
- f(p), c([]), r == null || r(void 0);
22739
+ f(p);
22740
+ let h = l[0] || 0;
22741
+ p !== d && (c([]), h = 0);
22742
+ const m = `${p},${h}`;
22743
+ m !== t && (r == null || r(m));
22738
22744
  },
22739
22745
  value: d
22740
22746
  })
@@ -22750,7 +22756,7 @@ const DatePickerConfig = {
22750
22756
  value: l,
22751
22757
  onChange: (p) => {
22752
22758
  c(p);
22753
- const h = `${d},${p[0]}`;
22759
+ const h = `${d},${p[0] || 0}`;
22754
22760
  h !== t && (r == null || r(h));
22755
22761
  }
22756
22762
  })