The home page of the site I’m working on (purchased template) has scroll-to-section behavior. When in a mobile viewport, the mobile nav is displayed when the hamburger is clicked, and the hamburger converts to a close button (X). That works just fine.
When a nav link is clicked, the page is scrolled to the appropriate section, and the mobile menu is hidden. However, at that point, there seems to be an issue with the click state of the hamburger. While the animation completes and it looks just fine, because there was only ever 1 click on that element, after the nav closes, re-opening the menu requires 2 clicks on the hamburger to re-open. To be clear, this only happens if:
- User clicks on the hamburger, nav opens (click 1)
- User clicks on a nav link (NOT the close menu button, e.g. there is no second click on the menu button).
The mobile menu button has an interaction on the 1st and 2nd click to show and hide the menu respectively.
Is there a way to reset the click state of an element back to zero when a different action occurs?
Here is my public share link: Public Site