megaMenu - visible property not working

UI Components for React
Post Reply
chrishj
Posts: 229
Joined: 11 Jul 2011, 21:58
Location: England, Lancashire
Contact:

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: 9.6.0
NextJs: 13.4.12
Theme Apollo v9.0
Database pg 8.8.0
react-hook-form: 7.38.0

Melloware
Posts: 3716
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 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

chrishj
Posts: 229
Joined: 11 Jul 2011, 21:58
Location: England, Lancashire
Contact:

08 Mar 2023, 15:54

Hi,
I have raised defect #4140 for this issue.
PrimeReact: 9.6.0
NextJs: 13.4.12
Theme Apollo v9.0
Database pg 8.8.0
react-hook-form: 7.38.0

Melloware
Posts: 3716
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 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests