Skip to content

Commit

Permalink
Update src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js
Browse files Browse the repository at this point in the history
Co-authored-by: Peyton Murray <[email protected]>
  • Loading branch information
gabalafou and peytondmurray authored Jan 27, 2025
1 parent 28560cb commit 52133b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ function addModeListener() {
function setupPageTableOfContents() {
const pageToc = document.querySelector("#pst-page-toc-nav");
pageToc.addEventListener("click", (event) => {
if (!event.target.matches(".nav-link")) {
const clickedLink = event.target.closest(".nav-link")
if (!clickedLink) {
return;
}
const clickedLink = event.target;

// First, clear all the added classes and attributes
// -----
Expand Down

0 comments on commit 52133b3

Please sign in to comment.