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