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

[Calendar] issue when clicking on "today" button it doesn't navigate to the current date. #14087

Closed
cdskill opened this issue Nov 10, 2023 · 2 comments · Fixed by #14098
Closed
Labels
LTS-PORTABLE Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@cdskill
Copy link

cdskill commented Nov 10, 2023

Describe the bug

When the calendar is display in inline mode with showButtonBar set to true when I navigate through the navigate button in previous on month (for e.g) and then I click on today I'm excpecting to display the current date and get back to the current month, current day.

Environment

all

Reproducer

https://stackblitz.com/edit/reszae?file=src%2Fapp%2Fdemo%2Fcalendar-inline-demo.html

Angular version

16.2.0

PrimeNG version

16.7.2

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20

Browser(s)

chrome

Steps to reproduce the behavior

Stackblitz :)

Expected behavior

I'm excpecting when I click on "today" the calendar should display the current date.

@cdskill cdskill added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 10, 2023
@ashikjs
Copy link
Contributor

ashikjs commented Nov 13, 2023

@cdskill it's working as expected. I can see it show today date as selected with selected color.

@cdskill
Copy link
Author

cdskill commented Nov 13, 2023

@cdskill it's working as expected. I can see it show today date as selected with selected color.

Did you navigate by month by year ? Then click on today ?
I confirm that is not working.
There is a video attached to understand better the issue.

calendar-issue.mp4

ashikjs added a commit to ashikjs/primeng that referenced this issue Nov 13, 2023
…tton it doesn't navigate to the current date.
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 17, 2023
@cetincakiroglu cetincakiroglu added this to the 16.9.0 milestone Nov 22, 2023
cetincakiroglu added a commit that referenced this issue Nov 22, 2023
…te-click-not-reset-view

fix: #14087 || [Calendar] issue when clicking on "today" button it do…
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

Successfully merging a pull request may close this issue.

3 participants