diff --git a/components/lib/megamenu/MegaMenu.js b/components/lib/megamenu/MegaMenu.js index a6a6e0b3c1..000c1a867c 100644 --- a/components/lib/megamenu/MegaMenu.js +++ b/components/lib/megamenu/MegaMenu.js @@ -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) => {