From 2cc1e392fb06bf09f2e8d74d325c25f937ec8c4b Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 10 Jun 2024 22:53:41 -0300 Subject: client: keep using closestHeading for sticky subheading Turns out this is necessary for the changelog. Wow. --- src/static/js/client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/static/js/client.js b/src/static/js/client.js index 1911c6f7..795b5f77 100644 --- a/src/static/js/client.js +++ b/src/static/js/client.js @@ -2708,7 +2708,8 @@ function updateStickySubheadingContent(index) { const textContainer = templateContent( closestHeading.querySelector('.content-heading-sticky-title')) ?? - closestHeading.querySelector('.content-heading-main-title'); + closestHeading.querySelector('.content-heading-main-title') ?? + closestHeading; for (const child of textContainer.childNodes) { if (child.tagName === 'A') { -- cgit 1.3.0-6-gf8a5