I just figured out how to lock the body scroll when the menu is open in mobile, and also how to change the MENU text to CLOSE when opening it. Almost.
When viewing on mobile, or in desktop in a narrow window, the menu, scroll and menu button behave erratically: body scroll works and then doesn’t, both MENU and CLOSE text can be seen on loading and sometimes when triggering the menu button, the menu closes when scrolling down then it doesn’t open/closes… Please check the full video below to see it.
Hi @lewis it looks like you’re using click interactions rather than a navbar open/close interaction to animate your menu and the child elements.
If you select your navbar element while the symbol is being edited you should be able to create the animation on navbar open/close events which should resolve the issue:
Hi @Waldo, I added the navbar open/close interaction to the navbar and removed it from the buttons and it seems to work! But persists the forced close on scroll when the menu is open.
Now it’s just the force closing when scrolling on mobile with the menu open. I tried removing the js code to lock the body, but it closes anyway. Any idea why it might be happening? (It’s on a mobile device, on a narrow window on desktop works perfectly)