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