Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P-calendar defaultDate not work correctly #11104

Closed
astranCZ opened this issue Jan 24, 2022 · 0 comments
Closed

P-calendar defaultDate not work correctly #11104

astranCZ opened this issue Jan 24, 2022 · 0 comments
Assignees
Labels
LTS-PORTABLE Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@astranCZ
Copy link

astranCZ commented Jan 24, 2022

[x ] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

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

image
image
image
image

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

@yigitfindikli yigitfindikli added this to the 13.1.1 milestone Jan 31, 2022
@yigitfindikli yigitfindikli added the Status: Pending Review Issue or pull request is being reviewed by Core Team label Jan 31, 2022
yigitfindikli added a commit that referenced this issue Feb 7, 2022
Fixed #11104 - Calendar | defaultDate not work correctly
@yigitfindikli yigitfindikli added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working LTS-PORTABLE and removed Status: Pending Review Issue or pull request is being reviewed by Core Team labels Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTS-PORTABLE Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants