Update mkdocs/themes/mkdocs/js/base.js

Co-authored-by: Tom Christie <tom@tomchristie.com>
This commit is contained in:
Martin Donath
2024-06-20 10:13:59 +02:00
committed by GitHub
parent f0e9d7de9e
commit 0e60ebceea

View File

@@ -139,8 +139,9 @@ document.addEventListener("DOMContentLoaded", function () {
menu.parentElement.addEventListener('hide.bs.dropdown', function() {
menu.scrollTop = 0;
var dropdown = menu.querySelector('.dropdown-submenu > a');
if (dropdown)
dropdown.classList.remove('open');
if (dropdown) {
dropdown.classList.remove('open');
}
menu.querySelectorAll('.dropdown-menu .dropdown-menu').forEach(function(submenu) {
submenu.classList.remove('show');
});