Skip to content

Commit

Permalink
fix focus when clicking on a search result located on current page
Browse files Browse the repository at this point in the history
  • Loading branch information
phtournier committed Sep 6, 2023
1 parent da20016 commit 4fdc662
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/_static/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ const searchLunr = (text) => {
subTitle.className = 'search-result-title'
subTitle.href = result.links[i]

subTitle.onclick = function (e) {
removeOverlay()
}

const titleDiv = document.createElement('div')

const titleText = document.createElement('p')
Expand Down

0 comments on commit 4fdc662

Please sign in to comment.