forked from M3-Academy/vtex-cms-template-atualizado
feat: corrige abertura
This commit is contained in:
parent
a37a4cc514
commit
993192a705
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user