Only inside p-overlayPanel, p-calendar has month/year navigation problem
I'm submitting a ... (check one with "x")
[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-mkrr8t
Current behavior Clicking on the month navigation button either forward or backward will cause overlay panel behind and the calendar itself to close. (This issue does not exist on PrimeNG version 7.0.4 and older).
Expected behavior Calendar should navigate to next/previous month instead of closing overlay component and the calendar itself.
Minimal reproduction of the problem with instructions Step to reproduce:
- Open URL https://stackblitz.com/edit/github-mkrr8t
- Click on the button "Open Overlay"

- Click on the calendar button to open the calendar overlay.

- Click on the month navigation button either forward or backward will cause overlay panel behind and the calendar itself to close.

What is the motivation / use case for changing the behavior? The calendar inside an overlay panel can be used as complex filter for a column in the turbo table, e.g: to filter with date range and created person name in a column.
Please tell us about your environment: Windows 8.1, VS Code
-
Angular version: 7.1.0
-
PrimeNG version: 7.1.2
-
Browser: all
-
Language: TypeScript
Suggestion to fix:
Please use setTimeout to delay modifying the property in the calendar component when navigating forward or backward. This is to make sure that the navigation button will not be replaced directly that will cause the overlay panel behind to mistakenly assume the navigation button is not descendant of overlay panel while listening on document click event that hide the panel.

Is this problem fixed, I still have the same problem how to fix this
Thanks a lot for the all PR! But, I implemented a different solution.
Best Regards,
Thanks a lot for the all PR! But, I implemented a different solution.
Best Regards,
Hi @mertsincan I am using the primeng 7.1.3 version still overlay panel is closed when navigating use the p-calaendar naviagtion buttons can you please share the workaround which you tried that will be help full for me.
This issue still persists in version 16.9.1 . Any plan for permanent fix around this.
I'm still facing the same issue in primeng 16.9.1. Is there any workaround or fix for this ?
@nehashahkedia @vamsidhar1999, have you tried version 17.3.1? We had that problem in a project, and updating everything to Angular 17 (and consequently, primeng) worked fine again.
Using version 16 which is the LTS. Version 17 has come with LTS?
Using version 16 which is the LTS. Version 17 has come with LTS?
No, it doesn't have a LTS version yet.