Bugfix for download button dropdown outsideclick

ref #91
This commit is contained in:
2021-03-14 20:25:41 +01:00
parent 88ad64f113
commit 6a925cb27f
6 changed files with 78 additions and 63 deletions

View File

@@ -46,8 +46,8 @@
});
document.addEventListener("click", function (e) {
if (
e.target.parentNode.parentNode.id != "sponsoring:dropdown" &&
e.target.parentNode.parentNode.id != "sponsoring:dropdown:menu"
e.target.parentNode?.parentNode?.id != "sponsoring:dropdown" &&
e.target.parentNode?.parentNode?.id != "sponsoring:dropdown:menu"
) {
sponsoring_contracts_download_open = false;
}