Skip to content

Commit

Permalink
fix: closeMenu on mobile when click item inside it (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wagner3UB authored Dec 17, 2024
1 parent aaa7549 commit ad8ccd7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/ItaliaTheme/MegaMenu/MegaMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,10 @@ const MegaMenu = ({ item, pathname, closeMenu }) => {
<UniversalLink
className="list-item medium"
item={item.showMoreLink[0]}
onClick={() => setMenuStatus(false)}
onClick={() => {
setMenuStatus(false);
closeMenu();
}}
role="menuitem"
>
<span>
Expand Down

0 comments on commit ad8ccd7

Please sign in to comment.