mirror of
https://github.com/mkdocs/mkdocs.git
synced 2026-03-27 09:58:31 +07:00
Update mkdocs/themes/mkdocs/js/base.js
Co-authored-by: Tom Christie <tom@tomchristie.com>
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user