feat: corrige abertura #4

Merged
ThiagoDutraSampaioLeite merged 1 commits from feature/menuLogica into main 2022-12-06 23:06:50 +00:00

View File

@ -32,7 +32,9 @@ export default class Menu {
openSubmenu(e) { openSubmenu(e) {
e.preventDefault(); e.preventDefault();
const link = $(e.target); const link = $(e.target);
link.siblings(".submenu").addClass("is-open"); link.parents(".main-menu__department")
.find(".submenu")
.addClass("is-open");
} }
closeSubmenu(e) { closeSubmenu(e) {