Fix out of scope variable
parent
0a63eb5f7d
commit
4249c2d9ca
|
@ -675,9 +675,9 @@ export default {
|
||||||
let value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
|
let value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
|
||||||
|
|
||||||
if (this.isMultipleSelection()) {
|
if (this.isMultipleSelection()) {
|
||||||
return value.some((currentValue) => currentValue.getMonth() === month && currentValue.getFullYear() === currentYear);
|
return value.some((currentValue) => currentValue.getMonth() === month && currentValue.getFullYear() === this.currentYear);
|
||||||
} else {
|
} else {
|
||||||
return value.getMonth() === month && value.getFullYear() === currentYear;
|
return value.getMonth() === month && value.getFullYear() === this.currentYear;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue