Skip to content

Commit

Permalink
Remove hack to fix bug with up/down keys and "More" links in sidebar (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
gabalafou authored and ivanov committed Jun 4, 2024
1 parent a25175e commit a6ed7ae
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,18 +597,6 @@ if (hasVersionsJSON && (hasSwitcherMenu || wantsWarningBanner)) {
}
}

/**
* Fix bug #1603
*/
function fixMoreLinksInMobileSidebar() {
const dropdown = document.querySelector(
".bd-sidebar-primary [id^=pst-nav-more-links]",
);
if (dropdown !== null) {
dropdown.classList.add("show");
}
}

/*******************************************************************************
* Add keyboard functionality to mobile sidebars.
*
Expand Down Expand Up @@ -728,5 +716,4 @@ documentReady(addTOCInteractivity);
documentReady(setupSearchButtons);
documentReady(initRTDObserver);
documentReady(setupMobileSidebarKeyboardHandlers);
documentReady(fixMoreLinksInMobileSidebar);
documentReady(setupLiteralBlockTabStops);

0 comments on commit a6ed7ae

Please sign in to comment.