-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Panel menu with submenu expanded by itself when in sideBar #10963
Comments
Hello, we are experiencing the same issue after updating primeng from 11.1.0 to last version. When the side bar closes, all the items of the PanelMenu are expanded and then, the behaviour is so strange. Regards. |
Add a PR with solution to this defect |
Same issue: |
@NilavPatel did you find a solution for this issue. I am facing the same issue. :( |
I just updated my primeng to the lastest release (14.1.0) which was made available yesterday and angular to the latest version(14.2.1) and this problem still persists. They did not accept this PR (#11367) nor addressed this issue yet. |
Add below CSS, it works for me .p-panelmenu .p-toggleable-content { |
Hi, So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap? Best Regards, |
Issue still exist in 14.2 @mertsincan I can;t reopen it so I will submit a new one https://stackblitz.com/edit/angular-ivy-2l4wfz?file=package.json |
lil trick, use same boolean for visible with ngif in panelMenu, have visual bug but works |
In Angular 15 I apply these styles: :host ::ng-deep .p-panelmenu .p-toggleable-content { :host ::ng-deep .p-panelmenu .p-toggleable-content.p-panelmenu-expanded { It works only in one level of the p-panelMenu, however if your menu has two or three level children those children seem open. |
2024 and the error persists. The solution I used is pretty much the same but now it breaks the children (angular 18) edit; I managed to workaround that by removing the "content" template, for example;
|
This is better: :host ::ng-deep .p-panelmenu-header + .p-toggleable-content.p-panelmenu-expanded { used on primeng 17. |
I'm submitting a ... (check one with "x")
Test case:
https://angular-ivy-2l4wfz.stackblitz.io
https://stackblitz.com/edit/angular-ivy-2l4wfz?file=src/styles.css
Current behavior
PanelMenu's subMenu expanded by itself when placed inside sideBar
Expected behavior
Submenu should not be expanded casue none clicked it...
Minimal reproduction of the problem with instructions
Scenario:
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
I am using IntelliI IDEA
Angular version: 5.X
Angular 12/13 doesn't matter
PrimeNG version: 5.X
12.2.3 and 13.02 as well
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
I am using Chrome 96.0.4664.93
The text was updated successfully, but these errors were encountered: