Skip to content

Commit

Permalink
Fix little edge case when we click on the "help page" link from withi…
Browse files Browse the repository at this point in the history
…n the help page already.
  • Loading branch information
tristanlatr committed Nov 26, 2024
1 parent d704054 commit 48d1101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydoctor/themes/base/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ window.addEventListener("click", (event) => {

// 3.Hide the dropdown if the user clicks on a link that brings them to the same page.
// This includes links in summaries.
link = event.target.closest('#search-results a')
link = event.target.closest('#search-results-container a')
if (link){
page_parts = document.location.pathname.split('/')
current_page = page_parts[page_parts.length-1]
Expand Down

0 comments on commit 48d1101

Please sign in to comment.