Accordion: updateActiveIndex does not actually update _activeIndex #15674
Labels
LTS-PORTABLE
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When manually opening or closing an Accordion, the internal state of the component does not get updated correctly.
_activeIndex
still holds the old values.This leads to issues when the control gets rendered and the expands/collapses by the user are ignored (in my case the sure can drag and drop accordions to sort them, which leads to re-rendering of the tabs).
Environment
Reproducer
No response
Angular version
17.3.0
PrimeNG version
17.17.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
v20.11.1
Browser(s)
No response
Steps to reproduce the behavior
If required, I can try to build a repro scenario as the app this is happening in is closed source. However, the fix seems pretty straightforward and a PR will be opened shortly :)
Expected behavior
No response
The text was updated successfully, but these errors were encountered: