fix dropdown arrow

This commit is contained in:
samaradel
2024-01-01 16:36:10 +02:00
parent 12c048a340
commit 4695b5afdc

View File

@@ -29,7 +29,7 @@ function toggleMenu(button) {
}
document.addEventListener("click", function (e) {
if (!button.id == e.target.id) {
if (!button.contains(e.target)) {
hideMenu(button.id.split("-")[0]);
button.lastElementChild.className = button.lastElementChild.className.replace(
"rotate-0",