PanelMenu: Possible to only collapse when clicking icon? #4255
Unanswered
gianluca-moro
asked this question in
PrimeNG
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am using a
PanelMenuPrimeNG component (v19.1.0) with multiple submenues. Per default, all submenues are expanded.Now, if I click on one of the entires, all its submenues collapse.
Is it somehow possible to only collapse/expand submenues if you click on the icon? Currently the event is triggered no matter where on the entry you click.
Also, I still want to use routing, i.e., when clicking on the text, it should still navigate to the route but not collapse any submenues.
Reproducer: https://stackblitz.com/edit/u1txrvbj?file=src%2Fapp%2Fpanel-menu-basic-demo.ts
Files(the text)Desired behaviour:
Files--> All submenues collapseAll reactions