Skip to content

Commit

Permalink
primefaces#12330 Fix logic of disable months in month picker
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim committed Dec 6, 2022
1 parent 40b29df commit 56bea44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,7 @@ export class Calendar implements OnInit, OnDestroy, ControlValueAccessor {
}

isMonthDisabled(month) {
return !this.isSelectable(1, month, this.currentYear, false);
return !this.isSelectable(1, month, this.currentYear, false) && !this.isSelectable(this.getDaysCountInMonth(month, this.currentYear) ,month, this.currentYear, false);
}

isYearSelected(year) {
Expand Down

0 comments on commit 56bea44

Please sign in to comment.