Fix rendering of new rail
This commit is contained in:
@@ -47,5 +47,11 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
var open = nav.classList.toggle("is-open");
|
||||
fab.setAttribute("aria-expanded", open ? "true" : "false");
|
||||
});
|
||||
nav.addEventListener("click", function (e) {
|
||||
if (e.target.tagName === "A") {
|
||||
nav.classList.remove("is-open");
|
||||
fab.setAttribute("aria-expanded", "false");
|
||||
}
|
||||
});
|
||||
document.body.appendChild(fab);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user