forked from M3-Academy/vtex-cms-template-atualizado
fix: Ajusta abertura do submenu mobile
This commit is contained in:
parent
28055c9867
commit
2d00732b68
@ -32,8 +32,10 @@ export default class Menu {
|
||||
openSubmenu(event) {
|
||||
event.preventDefault();
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user