P-calendar defaultDate not work correctly #11104
Labels
LTS-PORTABLE
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Plunkr Case (Bug Reports)
Please demonstrate your case at stackblitz by using the issue template below. Issues without a test case have much less possibility to be reviewd in detail and assisted.
https://stackblitz.com/edit/primeng-calendar-demo-6nuwnt
Current behavior
If I set defaultDate, the defaultDate setting is used even if the date is filled.
Expected behavior
DefaultDate is used only for an empty field.
Minimal reproduction of the problem with instructions
Set defaultDate od timeOnly p-calendar field
https://stackblitz.com/edit/primeng-calendar-demo-6nuwnt
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Angular version:
Angular 11.X
PrimeNG version:
PrimeNg 13.1.0
Browser:
all
Language:
all
The text was updated successfully, but these errors were encountered: