You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PrimeNG AccordionContent Component has a memory leak.
When navigating from a page that has a PrimeNG AccordionContent component a detached node occurs.
The problem can be reproduced using the PrimeNG Accordion demo. The memory leak was induced in PrimeNG v19
The video listed below demonstrates the issue.
Video Notes:
At the start of the video, I refresh the page. This clears the page's memory
In the Video I navigate away from the Accordion Demo Page 5 times
I use the Chrome Development Tool's Memory Profiler to take a snapshot of the browsers JavaScript VM memory (profiling type = detached elements)
Chrome has detected 5 detached elements
At the end of the demo I navigate to the "about page" because this is a very simple page and sometimes Chrome's Memory Profile will identify additional detached elements that would have been removed during the execution of a page's destroy methods https://github.com/user-attachments/assets/081cbf43-2edc-4417-8d3f-dad97c1d7a88
The next video shows PrimeNG v17 Accordion Demo working properly. Note PrimeNg v17 doesn't have a AccordionContent Component but the Accordion functionality (and PrimeNG demo) is equivalent to v19.
Describe the bug
The PrimeNG AccordionContent Component has a memory leak.
When navigating from a page that has a PrimeNG AccordionContent component a detached node occurs.
The problem can be reproduced using the PrimeNG Accordion demo. The memory leak was induced in PrimeNG v19
The video listed below demonstrates the issue.
Video Notes:
https://github.com/user-attachments/assets/081cbf43-2edc-4417-8d3f-dad97c1d7a88
The next video shows PrimeNG v17 Accordion Demo working properly. Note PrimeNg v17 doesn't have a AccordionContent Component but the Accordion functionality (and PrimeNG demo) is equivalent to v19.
AccordionV17Good.mov
Pull Request Link
No response
Reason for not contributing a PR
Other Reason
No response
Reproducer
https://primeng.org/accordion
Environment
n/a
Angular version
19
PrimeNG version
v19
Node version
n/a
Browser(s)
all browsers
Steps to reproduce the behavior
-- this will reset the page's memory
-- only use links provided in the PrimeNG demo to navigate
Expected behavior
No detached nodes
No memory leak