Skip to content

Commit 208e8de

Browse files
author
benquist
committed
Fix search: remove conflicting bibsearch.js module listener on publications page
bibsearch.js and the inline script both attached input listeners to #bibsearch, causing them to fight — bibsearch.js used CSS.highlights/.unloaded while the inline script used display:none, resulting in no visible filtering. Fix: replace liquid include with a plain <input id='pub-search'> so bibsearch.js never loads on this page; inline script now owns the element exclusively.
1 parent 5440489 commit 208e8de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

_pages/publications.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Use the tabs to group papers by subject area, or use the search box to filter wi
2626
<p class="publication-topic-caption publication-topic-caption--hint">Start with broad themes (Scaling, Trait Ecology, Biodiversity Informatics), then refine with search.</p>
2727
</div>
2828

29-
{% include bib_search.liquid %}
29+
<input type="text" id="pub-search" spellcheck="false" autocomplete="off" class="search bibsearch-form-input" placeholder="Search all publications…" aria-label="Search publications">
3030

3131
<p id="publication-topic-empty" class="publication-topic-empty" hidden>No publications match the current subject tab and search query.</p>
3232

@@ -213,7 +213,7 @@ Use the tabs to group papers by subject area, or use the search box to filter wi
213213

214214
<script>
215215
document.addEventListener('DOMContentLoaded', function () {
216-
const input = document.getElementById('bibsearch');
216+
const input = document.getElementById('pub-search');
217217
const container = document.getElementById('full-publication-list');
218218
const tabsContainer = document.getElementById('publication-topic-tabs');
219219
const emptyState = document.getElementById('publication-topic-empty');

0 commit comments

Comments
 (0)