From 8b23d3e41f5fa7a9d33f996e99abd611eb7aaeca Mon Sep 17 00:00:00 2001 From: Akshay Antony Date: Wed, 21 Feb 2024 17:22:34 +0530 Subject: [PATCH] fix: primefaces #14839, Calendar: The lowest year in the Year navigator dropdown remains disabled when we are applying minDate in date selector --- src/app/components/calendar/calendar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/calendar/calendar.ts b/src/app/components/calendar/calendar.ts index ce28618cce4..a30f57f38d3 100755 --- a/src/app/components/calendar/calendar.ts +++ b/src/app/components/calendar/calendar.ts @@ -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) {