Skip to content

Commit

Permalink
Merge pull request #14853 from qburst/master
Browse files Browse the repository at this point in the history
fix: primefaces #14839, Calendar: The lowest year in the Year navigator dropdown remains disabled when we are applying minDate in date selector
  • Loading branch information
cetincakiroglu authored Mar 14, 2024
2 parents 62f70c6 + 8b23d3e commit 63b9241
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 @@ -1835,7 +1835,7 @@ export class Calendar implements OnInit, OnDestroy, ControlValueAccessor {
if (this.minDate) {
if (this.minDate.getFullYear() > year) {
validMin = false;
} else if (this.minDate.getFullYear() === year) {
} else if (this.minDate.getFullYear() === year && this.currentView != 'year') {
if (this.minDate.getMonth() > month) {
validMin = false;
} else if (this.minDate.getMonth() === month) {
Expand Down

0 comments on commit 63b9241

Please sign in to comment.