diff --git a/src/_includes/global/navbar.njk b/src/_includes/global/navbar.njk index a000d69c..264b45b4 100644 --- a/src/_includes/global/navbar.njk +++ b/src/_includes/global/navbar.njk @@ -104,7 +104,7 @@ }; const toggleNavigation = () => { - const open = navbarToggle.getAttribute("aria-expanded"); + const open = navbarToggle.ariaExpanded; open === "false" ? openNavigation() : closeNavigation(); }