Skip to content

Commit 9837890

Browse files
committed
refactor: find the pagination nav through the listing element
1 parent eab9f5a commit 9837890

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/resources/projects/website/listing/quarto-listing.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ function attachPaginationHandler(listingId) {
157157
// Label the page links for assistive technology: name each page, mark the
158158
// current one and hide the gaps, which are not links to anywhere.
159159
function decoratePagination(listingId) {
160-
const navEl = window.document.querySelector(
161-
`#${listingId} nav.listing-pagination`
162-
);
160+
const navEl = window.document
161+
.getElementById(listingId)
162+
?.querySelector("nav.listing-pagination");
163163
if (!navEl) {
164164
return;
165165
}

0 commit comments

Comments
 (0)