fix: Ajusta abertura do submenu mobile

This commit is contained in:
Saulo Klein Nery 2022-12-08 14:09:34 -03:00
parent 28055c9867
commit 2d00732b68

View File

@ -32,8 +32,10 @@ export default class Menu {
openSubmenu(event) { openSubmenu(event) {
event.preventDefault(); event.preventDefault();
const link = $(event.target); 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) { closeSubmenu(event) {