Open sebastiangorski opened 6 months ago
@sebastiangorski you cannot not pass a function directly to the minDate property since minDate's data type is "Date" only. you should create a date variable and have to pass it to the minDate. hope this is helpful!
Describe the bug
I'm using Calendar component on my page. When I don't provide either
mindate
ormaxDate
, everything works fine. However, when I bind the date tominDate
attribute, the Calendar component opens, but is not reacting to clicks. I can't select a day, I can't change month nor year. Please see attached video.There is a hover effect on day cells, but once I click, it's not reacting to anything.
Here is how I set the date:
HTML Template:
Component TS file:
https://github.com/primefaces/primeng/assets/44788859/50b7dfd7-1ff2-48b2-9e61-8255558688a0
Environment
localhost Angular app
Reproducer
No response
Angular version
17.3.1
PrimeNG version
12.12.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.17.1
Browser(s)
Chrome
Steps to reproduce the behavior
minDate
attribute on Calendar componentExpected behavior
Calendar component opens and I am able to select dates excluding the ones matching
minDate
ormaxDate
.