primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Accordion: updateActiveIndex does not actually update _activeIndex

Open LoaderB0T opened this issue 9 months ago • 0 comments

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

LoaderB0T avatar May 23 '24 13:05 LoaderB0T