1. mikestam689
  2. Commercial Templates
  3. Thursday, 05 January 2023
  4.  Subscribe via email
Hi,

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
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Mike

Thank you for bringing this issue to our attention and for the detailed explanation

I have just created an update for this template to resolve the issue.

Kind regards
Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!