megaMenu - visible property not working

UI Components for React
Post Reply
chrishj
Posts: 218
Joined: 11 Jul 2011, 21:58

04 Mar 2023, 10:02

Hi,

I have would like specific menu items shown based on the logged-in user's role.

I notice that there is a property visible but when set to false it does not hide the menu.
This also affects the sandbox example from the guide.

Code: Select all

{ visible: false, label: 'Hidden' }
Could you advise how to hide specific menuItems?

Many thanks
PrimeReact: 8.5.0
NextJs: 13.0.0
Theme Apollo v7.0
Database pg 8.8.0
react-hook-foem: 7.38.0

Melloware
Posts: 3532
Joined: 22 Apr 2013, 15:48

07 Mar 2023, 19:22

Please report a bug. It probably just needs to be fixed.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 12.0.0 / PF Extensions 12.0.3
PrimeReact 8.7.3

chrishj
Posts: 218
Joined: 11 Jul 2011, 21:58

08 Mar 2023, 15:54

Hi,
I have raised defect #4140 for this issue.
PrimeReact: 8.5.0
NextJs: 13.0.0
Theme Apollo v7.0
Database pg 8.8.0
react-hook-foem: 7.38.0

Melloware
Posts: 3532
Joined: 22 Apr 2013, 15:48

20 Mar 2023, 14:17

Fixed it!
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 12.0.0 / PF Extensions 12.0.3
PrimeReact 8.7.3

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests