MenuItem visible property not working in Menu <p-menu> with sub items. #11928
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
If you set visible to false for a parent MenuItem when there are children, the children are hidden, but the parent is not.
Environment
Windows 11
Angular version
14.2.1
PrimeNG version
14.0.2
Build / Runtime
Angular CLI App
Node version
14.17.0
Browser(s)
Chrome 105.0.5195.102
Steps to reproduce
Using the below model for menu with sub items:
...results in the below output.
Expected behaviour
The parent AND it's children should not be even rendered to the DOM, let alone hidden.
StackBlitz
https://stackblitz.com/edit/primeng-menu-visible-issue
The text was updated successfully, but these errors were encountered: