Skip to content

Commit

Permalink
fix: primefaces primefaces#14839, Calendar: The lowest year in the Ye…
Browse files Browse the repository at this point in the history
…ar navigator dropdown remains disabled when we are applying minDate in date selector
  • Loading branch information
akshayantony55 committed Feb 21, 2024
1 parent 27065cf commit 8b23d3e
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 8b23d3e

Please sign in to comment.