Fixed #6342
parent
b4cfcbb320
commit
167b6b2ab0
|
@ -728,7 +728,7 @@ export default {
|
||||||
return this.modelValue.some((currentValue) => currentValue.getMonth() === month && currentValue.getFullYear() === this.currentYear);
|
return this.modelValue.some((currentValue) => currentValue.getMonth() === month && currentValue.getFullYear() === this.currentYear);
|
||||||
} else if (this.isRangeSelection()) {
|
} else if (this.isRangeSelection()) {
|
||||||
if (!this.modelValue[1]) {
|
if (!this.modelValue[1]) {
|
||||||
return this.modelValue[0].getFullYear() === this.currentYear && this.modelValue[0].getMonth() === month;
|
return this.modelValue[0]?.getFullYear() === this.currentYear && this.modelValue[0]?.getMonth() === month;
|
||||||
} else {
|
} else {
|
||||||
const currentDate = new Date(this.currentYear, month, 1);
|
const currentDate = new Date(this.currentYear, month, 1);
|
||||||
const startDate = new Date(this.modelValue[0].getFullYear(), this.modelValue[0].getMonth(), 1);
|
const startDate = new Date(this.modelValue[0].getFullYear(), this.modelValue[0].getMonth(), 1);
|
||||||
|
|
Loading…
Reference in New Issue