Explorar o código

Ingnore bubbled events from artifact download buttons

ghorsington %!s(int64=5) %!d(string=hai) anos
pai
achega
6cf363262a
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/templates/project_view.html

+ 2 - 0
src/templates/project_view.html

@@ -91,6 +91,8 @@
             if (!contents || !(contents instanceof HTMLElement))
                 continue;
             artifact.addEventListener("click", e => {
+                if(e.target instanceof HTMLElement && e.target.nodeName.toUpperCase() == "A")
+                    return;
                 e.preventDefault();
                 if (contents.classList.contains("contents-visible"))
                     contents.classList.remove("contents-visible");