Skip to content

Commit

Permalink
Fix primefaces#4956: Megmenu allow URL to be top level submenu
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Sep 25, 2023
1 parent 352eeab commit 25d24c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/megamenu/MegaMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ export const MegaMenu = React.memo(
originalEvent: event,
item: props.item
});
event.preventDefault();
}

if (item.items) {
activeItemState && activeItemState === item ? setActiveItemState(null) : setActiveItemState(item);
event.preventDefault();
}

event.preventDefault();
};

const onCategoryKeyDown = (event, item) => {
Expand Down

0 comments on commit 25d24c7

Please sign in to comment.