diff --git a/src/site/_includes/components/calloutScript.njk b/src/site/_includes/components/calloutScript.njk index 038062745..21f6213c1 100644 --- a/src/site/_includes/components/calloutScript.njk +++ b/src/site/_includes/components/calloutScript.njk @@ -29,7 +29,7 @@ // Collapse callouts Array.from(document.querySelectorAll(".callout.is-collapsible")).forEach((elem) => { - elem.addEventListener("click", (event) => { + elem.querySelector('.callout-title').addEventListener("click", (event) => { if (elem.classList.contains("is-collapsed")) { elem.classList.remove("is-collapsed"); } else { @@ -38,4 +38,4 @@ }); }); }); - \ No newline at end of file +