primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Only inside p-overlayPanel, p-calendar has month/year navigation problem

Open darius-iko opened this issue 7 years ago • 8 comments

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:

  1. Open URL https://stackblitz.com/edit/github-mkrr8t
  2. Click on the button "Open Overlay" image
  3. Click on the calendar button to open the calendar overlay. image
  4. Click on the month navigation button either forward or backward will cause overlay panel behind and the calendar itself to close. image

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. image

darius-iko avatar May 16 '19 11:05 darius-iko

Is this problem fixed, I still have the same problem how to fix this

redouane20063 avatar Jul 04 '19 16:07 redouane20063

Thanks a lot for the all PR! But, I implemented a different solution.

Best Regards,

mertsincan avatar Jul 12 '19 11:07 mertsincan

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.

comlabmohan avatar Aug 02 '19 06:08 comlabmohan

This issue still persists in version 16.9.1 . Any plan for permanent fix around this.

nehashahkedia avatar Dec 28 '23 07:12 nehashahkedia

I'm still facing the same issue in primeng 16.9.1. Is there any workaround or fix for this ?

vamsidhar1999 avatar Jan 11 '24 07:01 vamsidhar1999

@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.

stariluz avatar Jan 12 '24 19:01 stariluz

Using version 16 which is the LTS. Version 17 has come with LTS?

nehashahkedia avatar Jan 13 '24 05:01 nehashahkedia

Using version 16 which is the LTS. Version 17 has come with LTS?

No, it doesn't have a LTS version yet.

stariluz avatar Jan 16 '24 17:01 stariluz