Wednesday, 27 January 2021

Mmenu (jquery) strange behaviour on page navigation

I'm working on integrating a template (http://preview.themeforest.net/item/hireo-job-board-freelance-services-marketplace-html-template/full_screen_preview/22202212) with my favourite tools (C# with Blazor).

Going great so far, see here: https://woutersjobboard.azurewebsites.net/ but the mobile menu has an issue - when I navigate to /messages and then click the site logo to go back to the home page, the mobile menu doesn't work. This can be checked without even clicking the menu button, because if you inspect the wrapper element, it doesn't have mm-page (mobile menu page) class anymore.

This despite the mmenu code firing! As you can see with the debugger (in custom.js, function mobileMenu, almost all the way down). But somehow the mmenu code can't find the wrapper?

Sorry I could not think of a good way to make this a minimum reproducible example, and this is a deprecated jQuery library but hopefully someone can still help me.



from Mmenu (jquery) strange behaviour on page navigation

No comments:

Post a Comment