Skip to content

Commit

Permalink
Merge pull request #3694 from squidfunk/fix/mkdocs-theme-navigation
Browse files Browse the repository at this point in the history
Fix selector for dropdown
  • Loading branch information
tomchristie committed May 3, 2024
2 parents 53fec50 + 6eb6eac commit 2d2350c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkdocs/themes/mkdocs/js/base.js
Expand Up @@ -91,7 +91,7 @@ document.addEventListener("DOMContentLoaded", function () {

// First, close any sibling dropdowns.
var container = item.parentElement.parentElement;
container.querySelectorAll('> .dropdown-submenu > a').forEach(function(el) {
container.querySelectorAll(':scope > .dropdown-submenu > a').forEach(function(el) {
if (el !== item) {
hideInnerDropdown(el);
}
Expand Down

0 comments on commit 2d2350c

Please sign in to comment.