uiw 4.21.24 → 4.21.25

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/uiw.js CHANGED
@@ -7002,7 +7002,7 @@ function MonthPicker(props) {
7002
7002
  setType(captionType);
7003
7003
  } else {
7004
7004
  var year = new Date(panelDate).getFullYear();
7005
- var curPanelDate = new Date(new Date(panelDate).setFullYear(type === 'next' ? year + 1 : year - 1));
7005
+ var curPanelDate = new Date(new Date(panelDate).setFullYear(captionType === 'next' ? year + 1 : year - 1));
7006
7006
  setPanelDate(curPanelDate);
7007
7007
  }
7008
7008
  }