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 passes wrong expanded state to "template" of MenuItem #6497

Closed
Max0nyshchenko opened this issue Apr 30, 2024 · 0 comments · Fixed by #6502
Closed

PanelMenu passes wrong expanded state to "template" of MenuItem #6497

Max0nyshchenko opened this issue Apr 30, 2024 · 0 comments · Fixed by #6502
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@Max0nyshchenko
Copy link

Describe the bug

PanelMenu passes the wrong expanded state to the "template" of MenuItem:
image

Here is the demo: https://stackblitz.com/edit/dsx5xn?file=src%2FApp.jsx

Reproducer

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

PrimeReact version

10.6.3

React version

18.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

  1. Open the Reproducer link.
  2. See the issue.

Expected behavior

Expect to have a correct state passed to "itemRenderer".

@Max0nyshchenko Max0nyshchenko added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 30, 2024
nitrogenous added a commit that referenced this issue Apr 30, 2024
Fix #6497: PanelMenu isItemActive Update
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

Successfully merging a pull request may close this issue.

1 participant