From 4695b5afdc543afbf6f8f434aeed40ce4eb5dc7a Mon Sep 17 00:00:00 2001 From: samaradel Date: Mon, 1 Jan 2024 16:36:10 +0200 Subject: [PATCH] fix dropdown arrow --- static/js/custom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/custom.js b/static/js/custom.js index 72c495cc1..494b19977 100644 --- a/static/js/custom.js +++ b/static/js/custom.js @@ -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",