Skip to content

Commit

Permalink
Fix #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 229e70c commit f604b3b
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 f604b3b

Please sign in to comment.