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!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.