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])
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:
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