From 3ae5cd3e7dc83a9ea481e0bae41f85744c94e7dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isabella=20Sko=C5=99epov=C3=A1?= <isabella@skorepova.info> Date: Mon, 3 Feb 2020 16:14:19 +0100 Subject: [PATCH] Uh --- theme-source/partials/base-body.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme-source/partials/base-body.tsx b/theme-source/partials/base-body.tsx index 22b08fd4..cd05f349 100644 --- a/theme-source/partials/base-body.tsx +++ b/theme-source/partials/base-body.tsx @@ -168,7 +168,7 @@ export function BaseBody({ $("body").removeClass("show-subnav2").removeClass("show-subnav1"); } }); - [].forEach.call(document.querySelectorAll("[data-activates]"), function () { + [].forEach.call(document.querySelectorAll("[data-activates]"), function (a) { a.addEventListener("click", function(evt) { evt.preventDefault() var target = document.getElementById(a.dataset.activates) -- GitLab