From 2b276c3f0d3f9a846b1a3ef88952f0b8730b72c7 Mon Sep 17 00:00:00 2001 From: gabalafou Date: Thu, 16 May 2024 17:41:13 -0400 Subject: [PATCH] Remove hack to fix bug with up/down keys and "More" links in sidebar (#1819) --- .../assets/scripts/pydata-sphinx-theme.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js b/src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js index 805185739..bfa50d966 100644 --- a/src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js +++ b/src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js @@ -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. * @@ -728,5 +716,4 @@ documentReady(addTOCInteractivity); documentReady(setupSearchButtons); documentReady(initRTDObserver); documentReady(setupMobileSidebarKeyboardHandlers); -documentReady(fixMoreLinksInMobileSidebar); documentReady(setupLiteralBlockTabStops);