@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 +1 -1
- package/index.umd.js +1 -1
- package/package.json +1 -1
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 >
|
|
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 >
|
|
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;
|