-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Component: Accordion #15851
Comments
@mehmetcetin01140 I believe that Issue #15837 is invalid and PR #15838 should be reverted. By reverting PR #15838, this Issue #15851 will be fixed. To fix issue #15837 the developer should have stopped the event propagation in the button component after a click. Since issue #15837 did not provide a reproducer, I can not completely confirm this. See the following examples about stopping event propagation: |
@rosenthalj This is exactly how it should be approached, as anything can be in the header template. In fact even in the PrimeNg website this error is apparent, the accordion should be opened whenever you click on the header, except cases where the developer deliberately stops the click propagation. Otherwise there is no workaround, at least that I know of, to replicate the desired behaviour that existed before. |
Any ETA? we have already migrated to Angular 18 and downgrading to v17.17 seems quite annoying now. So thanks. |
In our application we are using PrimeNG 17.18.0 and Angular v18.0.3 and it's being pretty stable at the moment, this issue is not existing in this version just in version 17.18.1, so I think you should be able to downgrade to version 17.18.0 without any problem and without having to downgrade Angular. |
Thanks @adri95cadiz I have to check again because QA reported the same issue even with version 17.18.0 |
same happened with me today |
I can confirm that downgrading [EDIT]
|
I have upgraded to Angular 18.0.4 and primeNG 17.18.1 and I have the same issue, I.E clicking on text or chevron does not expand/collapse accordion. However, downgrading to primeNG 17.18.0 or even 17.17.0 does not solve this problem for me. |
Be sure to delete package-lock.json file and node_modules folder. Than reinstall (with primeng version 17.18.0) and it should work. |
Thanks, you are right. |
Fixed #15851 - Component: Accordion
Describe the bug
An Accordion Tab cannot be toggled anymore by clicking on the chevron or the text in the header. This stopped working after fix for #15837 was committed a few days ago. Now the only way to toggle the visibility of an Accordion Tab's content is to click in the whitespace around the elements in the tab header (ie. not on the text or chevron).
Environment
MacOS 14.5
Reproducer
https://primeng.org/accordion
Angular version
18.0.0
PrimeNG version
17.18.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.14.0
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
An Accordion Tab should toggle when clicking on text or chevron.
The text was updated successfully, but these errors were encountered: