Skip to content

Commit

Permalink
Fix primefaces#5190 - PanelMenu: Visual defect
Browse files Browse the repository at this point in the history
  • Loading branch information
gucal committed Oct 30, 2023
1 parent e92c736 commit a421b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/panelmenu/PanelMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const PanelMenu = React.memo(
};

const onItemClick = (event, item) => {
if (item.disabled) {
if (item.disabled || !item.items) {
event.preventDefault();

return;
Expand Down

0 comments on commit a421b68

Please sign in to comment.