feat: corrige abertura

This commit is contained in:
ThiagoDuutra 2022-12-06 20:05:59 -03:00
parent a37a4cc514
commit 993192a705

View File

@ -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) {