primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
9.82k stars 4.5k forks source link

Component: Calendar Year picker #14233

Open bkindzierski opened 7 months ago

bkindzierski commented 7 months ago

Describe the bug

When adding a p-calendar using a formControlName and using the "year" view, the component does not display the years. and receives the following error:

ERROR TypeError: Y.getFullYear is not a function at an.isYearSelected (calendar.ts:1680:56) my example:

Environment

I am seeing this when running ng serve on localhost

Reproducer

No response

Angular version

17

PrimeNG version

16.0.2

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.9.0

Browser(s)

chrome

Steps to reproduce the behavior

Add the example code from primeng website version 17 beta to form using a formControlName instead of [(ngModel])

Expected behavior

No response

mgecmez commented 4 months ago

I have a similar problem. Because, for example, I tried to set the year 2024 to the calendar and it gave this error.