Wrong emit on accordion open #10509
Labels
LTS-FIXED-11.4.10
Fixed in PrimeNG LTS 11.4.10
LTS-FIXED-12.2.5
Fixed in PrimeNG LTS 12.2.5
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
https://stackblitz.com/edit/github-yqtqpy-a6ykuu
Current behavior
If accordion is not set to multiple, open event always emits two values, first "false" and then "true". This does not happen on close event.
Expected behavior
Only one value should be emited.
Minimal reproduction of the problem with instructions
I created stackblitz workspace to reproduce the issue, check the console. Possible cause is here, where you can see that if multiple is not set, it always emits false and then it emits again actual value.
https://github.com/primefaces/primeng/blob/master/src/app/components/accordion/accordion.ts#L134
The text was updated successfully, but these errors were encountered: