fix(submenu-header): correção de abrir o botão pelo icone também

This commit is contained in:
Gabriel Ferraz Nogueira 2022-12-07 19:21:36 -03:00
parent a2e910555e
commit 9161793f92
2 changed files with 5 additions and 2 deletions

View File

@ -37,6 +37,9 @@ export default class Menu {
const link = $(event.target); const link = $(event.target);
link.parents(".main-menu__department")
.find(".submenu")
.addClass("is-open");
link.siblings(".submenu").addClass("is-open"); link.siblings(".submenu").addClass("is-open");
} }

View File

@ -96,7 +96,7 @@
VOLTAR VOLTAR
</button> </button>
<div class="container"> <div class="container">
<h2 class="submenu__title">LOREM IPSUM</h2> <h2 class="submenu__title">LOREM IPSUM 2</h2>
<div class="submenu__categories-wrapper"> <div class="submenu__categories-wrapper">
<ul class="submenu__categories"> <ul class="submenu__categories">
@ -164,7 +164,7 @@
VOLTAR VOLTAR
</button> </button>
<div class="container"> <div class="container">
<h2 class="submenu__title">LOREM IPSUM</h2> <h2 class="submenu__title">LOREM IPSUM 3</h2>
<div class="submenu__categories-wrapper"> <div class="submenu__categories-wrapper">
<ul class="submenu__categories"> <ul class="submenu__categories">