Forum Discussion
MikeImage
9 months agoCommunity Member
Closing the side menu if open using a JavaScript trigger
Is there a way to verify if the menu is open, close it using JavaScript and if it's closed, do nothing?
At the moment I can only toggle it using this JavaScript.
document.querySelector("#hamburg...
Jürgen_Schoene_
Community Member
you can check if menu is closed with
document.body.classList.contains("sidebar-closed")
MikeImage
9 months agoCommunity Member
Thank you.