@mw-kit/mw-ui 1.7.49 → 1.7.50

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.
@@ -13911,15 +13911,23 @@ var Main$1 = React__default.forwardRef(function (props, ref) {
13911
13911
 
13912
13912
  if (value[0]) {
13913
13913
  var c1 = getCalendar(value[0]);
13914
- setCalendar1(c1);
13915
13914
 
13916
- if (value[1]) {
13917
- var c2 = getCalendar(value[1]);
13915
+ var c2 = function () {
13916
+ var c2 = getCalendar2(c1);
13917
+
13918
+ if (value[1]) {
13919
+ var _c = getCalendar(value[1]);
13918
13920
 
13919
- if (c2.year > c1.year || c2.year === c1.year && c2.month > c1.month) {
13920
- setCalendar2(c2);
13921
+ if (_c.year > c1.year || _c.year === c1.year && _c.month > c1.month) {
13922
+ return _c;
13923
+ }
13921
13924
  }
13922
- }
13925
+
13926
+ return c2;
13927
+ }();
13928
+
13929
+ setCalendar1(c1);
13930
+ setCalendar2(c2);
13923
13931
  }
13924
13932
 
13925
13933
  setInvalid(value.map(function (v, i) {