fix: menu dropdown in the docs (#1369)

This commit is contained in:
Pasha Stetsenko
2022-02-13 11:33:09 -08:00
committed by GitHub
parent 12cf8f7096
commit 19802c37b3
2 changed files with 5 additions and 1 deletions

View File

@ -48,8 +48,11 @@ function buildVersionsMenu(data) {
</div>
</div>
`);
$("#versions-menu").on("click blur", function() {
$("#versions-menu").on("click", function() {
$(this).toggleClass("active");
}).on("blur", function() {
// A timeout ensures that `click` can propagate to child <A/> elements.
setTimeout(() => $(this).removeClass("active"), 200);
});
}

View File

@ -174,6 +174,7 @@ div.top-bar #menu-button {
position: absolute;
right: 0;
top: calc(var(--top-menu-height) - 4px);
white-space: nowrap;
}
#versions-menu.active > .dropdown-buttons .header {