PanelMenu ignores the visible attribute #4809
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
There is no guarantee in receiving a response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeNG PRO Support where support is provided within 4 business hours
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
Please fork the plunkr below and create a case demonstrating your bug report. Issues without a plunkr have much less possibility to be reviewed.
http://plnkr.co/edit/qoGVXTaRPAQ0ZpWtS0SA?p=preview
Current behavior
The visible attribute in the p-panelMenu is ignored.
The same behavior existed for tieredMenu and was fixed with issue #4502
Expected behavior
If visible property is set to false, menu item must be hidden.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Without visible support I will have to find another way to hide menu items based on user role. Potentially building a separate menu list for every role in the system, which is not ideal.
Please tell us about your environment:
Windows 7, Angluar CLI 1.6.3, Node 8.8.1
PrimeNG version: 5.0.2
Browser: Firefox 57, Chrome 63
Language: [all | TypeScript X.X | ES6/7 | ES5]
Node (for AoT issues):
node --version
=The text was updated successfully, but these errors were encountered: