@majoo-ui/react 1.61.4-rc.0 → 1.61.4

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/index.esm.js CHANGED
@@ -19426,7 +19426,7 @@ const CalendarRangePicker = _a => {
19426
19426
  const prevMonth = new Date(today.getFullYear(), today.getMonth() - 1, 1, 0);
19427
19427
  const nowMonth = new Date(today.getFullYear(), today.getMonth(), 1, 0);
19428
19428
  let initMonth = prevMonth;
19429
- if (selected && selected.length > 0) {
19429
+ if (selected && selected.length > 1) {
19430
19430
  const selectedMonthStart = new Date(selected[0].getFullYear(), selected[0].getMonth(), 1, 0);
19431
19431
  const selectedMonthEnd = new Date(selected[1].getFullYear(), selected[1].getMonth(), 1, 0);
19432
19432
  if (selectedMonthStart < nowMonth || selectedMonthEnd > nowMonth) initMonth = selectedMonthStart;
package/index.umd.js CHANGED
@@ -19703,7 +19703,7 @@
19703
19703
  var prevMonth = new Date(today.getFullYear(), today.getMonth() - 1, 1, 0);
19704
19704
  var nowMonth = new Date(today.getFullYear(), today.getMonth(), 1, 0);
19705
19705
  var initMonth = prevMonth;
19706
- if (selected && selected.length > 0) {
19706
+ if (selected && selected.length > 1) {
19707
19707
  var selectedMonthStart = new Date(selected[0].getFullYear(), selected[0].getMonth(), 1, 0);
19708
19708
  var selectedMonthEnd = new Date(selected[1].getFullYear(), selected[1].getMonth(), 1, 0);
19709
19709
  if (selectedMonthStart < nowMonth || selectedMonthEnd > nowMonth) initMonth = selectedMonthStart;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@majoo-ui/react",
3
- "version": "1.61.4-rc.0",
3
+ "version": "1.61.4",
4
4
  "dependencies": {
5
5
  "@majoo-ui/core": "^1.31.3",
6
6
  "@majoo-ui/helpers": "^1.30.5",