primefaces / primeng

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

Calendar defaultDate is not highlighted #14633

Closed clementdessoude closed 1 month ago

clementdessoude commented 9 months ago

Describe the bug

I'm not sure if it is a bug or if I don't understand the documentation properly. I tried to use the defaultDate property on the calendar component. The calendar open on the month and year of the defaultDate, as expected, but I expected to see also the defaultDate option highlighted (as the today's date is highlighted by default).

My understanding of the documentation is the same:

Set the date to highlight on first opening if the field is blank.

Screenshot 2024-01-25 at 16 46 27

Environment

My application is running on Angular 17 with latest version of PrimeNg (17.4.0)

Reproducer

No response

Angular version

17.0.9

PrimeNG version

17.4.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

v20.11.0

Browser(s)

No response

Steps to reproduce the behavior

  1. Add a calendar input in your Angular project with a default date (e.g. new Date('1995-12-17T03:24:00');)
  2. Open the calendar input. You should see the month of December, 1995.
  3. The 17th of December however is not highlighted

Expected behavior

I would expect to see the default date highlighted, as the today's date is. Or to have a clearer documentation on this property

Please let me know if I can help in any way on this topic !

arnoudb commented 8 months ago

We are experience the same issue (angular 17.0.9, primeNG: 17.3.2)

nbrown-ScottLogic commented 6 months ago

I believe this is covered in the bug issue : https://github.com/primefaces/primeng/issues/2799

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale. If this issue is still affecting you with the latest version, please leave any comment, and we will keep it open. We are sorry that we have not been able to prioritize it yet. If you have any new additional information, please include it with your comment!

github-actions[bot] commented 1 month ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you for your understanding!