From 054d2b3bf7eb4c5a5401565e86031f22ea754062 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 17 May 2024 13:31:03 +0200 Subject: feat: improve accessibility and browser behaviour --- frontend/static/search.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'frontend/static/search.js') diff --git a/frontend/static/search.js b/frontend/static/search.js index 358de13..030a318 100644 --- a/frontend/static/search.js +++ b/frontend/static/search.js @@ -49,7 +49,9 @@ function paginationLinkClicked(ev) { } function addPaginationEventListeners(pagination) { - pagination.addEventListener("click", paginationLinkClicked); + Array.from(pagination.children).forEach((child) => + child.addEventListener("click", paginationLinkClicked), + ); } function renderFragmentHTML(html) { -- cgit 1.4.1