I have recently installed the Riley template and created a menu with submenus. I have set the "Mobile Menu Close on Event" option to "No" in "Responsive Options", but the menu still closes when I try to open a submenu on my mobile phone.
After digging a bit in the code, I believe the problem is the following: in
scripts.js
, line 79, there is the following condition: if(templateOptions.mobileMenuCloseOnEvent)
. The value of templateOptions.mobileMenuCloseOnEvent
at runtime is 0 as intended, but the type of the variable is string, and therefore the condition becomes true and the pertinent event-listener is added, so that the menu closes on mouseup.Can you please check this and suggest a good fix? I've implemented a solution on my site but I wanted to check with you in case you are planning to fix this with an update to the template.
Many thanks!
Mike