From 2d00732b68b49d7d13442315eb7393f7a9296a14 Mon Sep 17 00:00:00 2001 From: Saulo Klein Nery Date: Thu, 8 Dec 2022 14:09:34 -0300 Subject: [PATCH] fix: Ajusta abertura do submenu mobile --- src/arquivos/js/app/partials/Menu.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/arquivos/js/app/partials/Menu.js b/src/arquivos/js/app/partials/Menu.js index fb7fa34..26afb52 100644 --- a/src/arquivos/js/app/partials/Menu.js +++ b/src/arquivos/js/app/partials/Menu.js @@ -32,8 +32,10 @@ export default class Menu { openSubmenu(event) { event.preventDefault(); const link = $(event.target); - console.log(link); - link.siblings(".submenu").addClass("is-open"); + + link.parents(".main-menu__department") + .find(".submenu") + .addClass("is-open"); } closeSubmenu(event) {