if (element === menu) {
return
} else {
element.classList.remove("active")
}
$dropDowns.forEach((el) => {
el.addEventListener("click", (e) => {
$dropMenus.forEach( element => element.classList.remove("active") );
el.querySelector('.dropdown_menu').classList.toggle('active');
});
});
Спасибо