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: expanded property doesn't work on the top list item #7413

Open
mikejav opened this issue Nov 13, 2024 · 0 comments
Open

PanelMenu: expanded property doesn't work on the top list item #7413

mikejav opened this issue Nov 13, 2024 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@mikejav
Copy link

mikejav commented Nov 13, 2024

Describe the bug

For the uncontrolled state, when PanelMenu's model.expanded property is set to true, the top list item is still collapsed.

For the nested list it works as expected (after opening the parent item)

image

Reproducer

https://stackblitz.com/edit/kp7quq?file=src%2FApp.jsx

System Information

System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz 
    Memory: 13.05 GB / 31.93 GB
  Binaries:
    Node: 20.10.0 - C:\Program Files\NodeJS 20.10.0\node.EXE
    npm: 10.2.3 - C:\Program Files\NodeJS 20.10.0\npm.CMD   
  Browsers:
    Edge: Chromium (130.0.2849.52)
    Internet Explorer: 11.0.19041.4355
  npmPackages:
    primereact: ^10.8.4 => 10.8.4 
    react: ^18.2.0 => 18.2.0

Steps to reproduce the behavior

  1. Go to https://stackblitz.com/edit/kp7quq?file=src%2FApp.jsx
  2. See the result. The highlighted expanded property is set to true while the component doesn't reflect it

Expected behavior

The PanelMenu component renders the expanded state for the items that has the expanded property set to true

@mikejav mikejav added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant