You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ContextMenu is broken in 10.0 upwards, when used with nested menu items. It happens on the demo page too, on the second example (https://primereact.org/contextmenu/#document).
(submenuIconClassName is not defined)
melloware
added
Type: Bug
Issue contains a defect related to a specific component.
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Oct 9, 2023
Describe the bug
ContextMenu is broken in 10.0 upwards, when used with nested menu items. It happens on the demo page too, on the second example (https://primereact.org/contextmenu/#document).
(submenuIconClassName is not defined)
It seems to be a very easy fix, I can provide a PR if wanted. But it really is a one line fix.
The submenuIconClassName variable was removed at some point. (8118900#diff-c1256c61f2cca219b7a6963af2945a698e1ae969414f76ec846a7d5d7a35683fL132)
And not removed at one other place. Patch to fix below.
changes.patch
Thanks for the great work!
Reproducer
https://primereact.org/contextmenu/#document
PrimeReact version
10.0.2
React version
17.x
Language
ALL
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
Expected to show ContextMenu and not to produce an error
The text was updated successfully, but these errors were encountered: