Skip to content
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

PanelMenu ignores the visible attribute #4809

Closed
nstig8 opened this issue Jan 12, 2018 · 1 comment
Closed

PanelMenu ignores the visible attribute #4809

nstig8 opened this issue Jan 12, 2018 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@nstig8
Copy link

nstig8 commented Jan 12, 2018

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")

[x ] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

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

  • Angular version: 5.1.3
  • PrimeNG version: 5.0.2

  • Browser: Firefox 57, Chrome 63

  • Language: [all | TypeScript X.X | ES6/7 | ES5]

  • Node (for AoT issues): node --version =

@cagataycivici cagataycivici self-assigned this Mar 5, 2018
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Mar 5, 2018
@cagataycivici cagataycivici added this to the 5.2.1 milestone Mar 5, 2018
@nstig8
Copy link
Author

nstig8 commented Mar 5, 2018

Thank you @marcbruederlin and @cagataycivici.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants