primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Calendar defaultDate is not highlighted

Open clementdessoude opened this issue 1 year ago • 3 comments

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 !

clementdessoude avatar Jan 25 '24 15:01 clementdessoude

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

arnoudb avatar Feb 26 '24 11:02 arnoudb

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

nbrown-ScottLogic avatar Apr 26 '24 08:04 nbrown-ScottLogic

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] avatar Aug 25 '24 01:08 github-actions[bot]

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!

github-actions[bot] avatar Sep 01 '24 01:09 github-actions[bot]