Skip to content

Commit a6ed7ae

Browse files
gabalafouivanov
authored andcommitted
Remove hack to fix bug with up/down keys and "More" links in sidebar (pydata#1819)
1 parent a25175e commit a6ed7ae

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js

-13
Original file line numberDiff line numberDiff line change
@@ -597,18 +597,6 @@ if (hasVersionsJSON && (hasSwitcherMenu || wantsWarningBanner)) {
597597
}
598598
}
599599

600-
/**
601-
* Fix bug #1603
602-
*/
603-
function fixMoreLinksInMobileSidebar() {
604-
const dropdown = document.querySelector(
605-
".bd-sidebar-primary [id^=pst-nav-more-links]",
606-
);
607-
if (dropdown !== null) {
608-
dropdown.classList.add("show");
609-
}
610-
}
611-
612600
/*******************************************************************************
613601
* Add keyboard functionality to mobile sidebars.
614602
*
@@ -728,5 +716,4 @@ documentReady(addTOCInteractivity);
728716
documentReady(setupSearchButtons);
729717
documentReady(initRTDObserver);
730718
documentReady(setupMobileSidebarKeyboardHandlers);
731-
documentReady(fixMoreLinksInMobileSidebar);
732719
documentReady(setupLiteralBlockTabStops);

0 commit comments

Comments
 (0)