• When using one page anchors the mobile menu stays open and you must manually close, is there a fix for this? This is part of a multisite https://hmconst.com Thank you!

    • This topic was modified 3 years, 11 months ago by jmhmconst.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Branko

    (@brankoconjic)

    Hi,

    This is a quick workaround until we release an update that will resolve the issue:

    document.querySelectorAll('.sinatra-nav a').forEach((item) => {
    	item.addEventListener(
    		'click',
    		function (e) {
    			if (document.body.parentNode.classList.contains('is-mobile-menu-active')) {
    				if ( item.getAttribute('href').includes('#') ) {
    					document.body.parentNode.classList.remove('is-mobile-menu-active');
    					item.closest('.site-navigation').style.display = 'none';
    				}
    			}
    		},
    		false
    	);
    });

    Let me know if you need help adding the JS code to your site.

Viewing 1 replies (of 1 total)
  • The topic ‘Mobile Menu not closing’ is closed to new replies.