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's navigation (left/right) is not in sync with selected date, if date is not in current year #6393

Closed
ChristianMetzner opened this issue Aug 24, 2018 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@ChristianMetzner
Copy link

ChristianMetzner commented Aug 24, 2018

[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)
https://stackblitz.com/edit/github-eewso5

Current behavior
When navigating forward/backward calendar is initially setting the wrong year when the selected date is not within the current year.

Expected behavior
When navigating forward/backward calendar is setting the previous/next month, relying on the current selected date (year).

Minimal reproduction of the problem with instructions
Set a date that is not within the current year. Then click on backward navigation. Calendar is now setting the previous month, but using the current year, instead of the year which is set by the selection. Same happens on forward navigation

  • Angular version: 6.1.2

  • PrimeNG version: 6.1.0

@cagataycivici cagataycivici reopened this Aug 29, 2018
@cagataycivici cagataycivici self-assigned this Aug 29, 2018
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Aug 29, 2018
@cagataycivici cagataycivici added this to the 6.1.3 milestone Aug 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

2 participants