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
Click on bottom "Test Me alert!" would trigger the func defined in command
Expected behavior
Click on bottom item "Test Me alert!"
With "primereact": "10.0.2", the event is triggered
With "primereact": "10.0.9", the event cannot be triggered (as item.items returns false)
If I define a dummy list into last menu item, the event is triggered (as item.items returns true) in "10.0.9". However PanelMenu treats the item as expandable item and leave an empty space after event is triggered
{
label: "Test Me alert!",
items: [{}],
command: () => {
alert("Test Me alert");
}
}
The text was updated successfully, but these errors were encountered:
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
Nov 7, 2023
Describe the bug
Changes introduced in a421b68, command is no longer triggered when MenuItem has no child
Reproducer
No response
PrimeReact version
10.0.9
React version
17.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
The text was updated successfully, but these errors were encountered: