Use ariaExpanded method for navigation toggle function
This commit is contained in:
parent
5117609be4
commit
d3c19d83fb
|
@ -104,7 +104,7 @@
|
|||
};
|
||||
|
||||
const toggleNavigation = () => {
|
||||
const open = navbarToggle.getAttribute("aria-expanded");
|
||||
const open = navbarToggle.ariaExpanded;
|
||||
open === "false" ? openNavigation() : closeNavigation();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue