From 993192a70545c21c419b18d00aefefe3a1ab6d20 Mon Sep 17 00:00:00 2001 From: ThiagoDuutra Date: Tue, 6 Dec 2022 20:05:59 -0300 Subject: [PATCH] feat: corrige abertura --- src/arquivos/js/app/partials/Menu.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/arquivos/js/app/partials/Menu.js b/src/arquivos/js/app/partials/Menu.js index c9dde73..fdb6790 100644 --- a/src/arquivos/js/app/partials/Menu.js +++ b/src/arquivos/js/app/partials/Menu.js @@ -32,7 +32,9 @@ export default class Menu { openSubmenu(e) { e.preventDefault(); const link = $(e.target); - link.siblings(".submenu").addClass("is-open"); + link.parents(".main-menu__department") + .find(".submenu") + .addClass("is-open"); } closeSubmenu(e) { -- 2.34.1