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
PrimeNG v21 Accordion functionality has a regression memory leak.
This regression was fixed in v19 (Closed Issue #18296) and was also fixed in v20(Closed Issue #18546).
The video listed below demonstrates the issue with v21 Accordion.
Video Notes:
At the start of the video, I hard refresh the page. This clears the page's memory
In the Video I navigate away from the Accordion Demo Page 3 times
-- I navigate from the Accordion page to the "about page" because 'about page' is a very simple page
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 3 detached Accordion elements
accordionMemoryLeak.mov
I "arbitrarily" tested (following similar steps) a few PrimeNG Components that I use in my application:
MegaMenu, MultiSelect, Select, SelectButton did not appear to have a memory leak
Describe the bug
PrimeNG v21 Accordion functionality has a regression memory leak.
This regression was fixed in v19 (Closed Issue #18296) and was also fixed in v20(Closed Issue #18546).
The video listed below demonstrates the issue with v21 Accordion.
Video Notes:
-- I navigate from the Accordion page to the "about page" because 'about page' is a very simple page
accordionMemoryLeak.mov
I "arbitrarily" tested (following similar steps) a few PrimeNG Components that I use in my application:
Pull Request Link
#19220
Reproducer
https://primeng.org/accordion
Environment
N/A
Angular version
21+
PrimeNG version
v21
Node version
n/a
Browser(s)
all browsers
Steps to reproduce the behavior
See closed Issue #18546 "Steps" on how to reproduce the bug
Expected behavior
No memory leak.