From b9ea58dc4fc6f14626eb0d3d8839d7501841bd95 Mon Sep 17 00:00:00 2001 From: Andrew Brehaut Date: Thu, 11 Mar 2021 10:54:25 +1300 Subject: [PATCH] Update Shared/Article Rendering/newsfoot.js Good catch thanks Co-authored-by: Jed Fox --- Shared/Article Rendering/newsfoot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shared/Article Rendering/newsfoot.js b/Shared/Article Rendering/newsfoot.js index fc5b386d5..1a53dbe42 100644 --- a/Shared/Article Rendering/newsfoot.js +++ b/Shared/Article Rendering/newsfoot.js @@ -143,7 +143,7 @@ // Only override the default behaviour when we know we can find the // target element - const targetElement = document.querySelector(`[id='${targetId}']`); + const targetElement = document.getElementById(targetId); if (targetElement === null) return; ev.preventDefault();