« get me outta code hell

content, client: additional-names-box: integrate more neatly - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/static/js/client
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-04-06 11:52:26 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-04-06 11:52:26 -0300
commitae14f6844b66a46d153c69ca05538d144e8a4509 (patch)
tree2ed6afd0a2393c79805dd710bd2ebd729c9da516 /src/static/js/client
parent50d0b505af8ed2038dc0f6ee01b8ba04b04310eb (diff)
content, client: additional-names-box: integrate more neatly
Since we're checking for [inert] ancestor anyway, we don't need
to depend on BS "first matched by querySelector()" logic anymore
Diffstat (limited to 'src/static/js/client')
-rw-r--r--src/static/js/client/additional-names-box.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/static/js/client/additional-names-box.js b/src/static/js/client/additional-names-box.js
index da1467ec..38e6d52f 100644
--- a/src/static/js/client/additional-names-box.js
+++ b/src/static/js/client/additional-names-box.js
@@ -30,8 +30,10 @@ export function getPageReferences() {
 
   info.stickyHeadingLink =
     document.querySelector(
-      '.content-sticky-heading-container ' +
-      'a[href="#additional-names-box"]');
+      '.content-sticky-heading-container' +
+      ' ' +
+      'a[href="#additional-names-box"]' +
+      ':not(:matches([inert] *))');
 
   info.contentContainer =
     document.querySelector('#content');