Menu Closes When Clicked

Replied by ced1870 on topic Menu Closes When Clicked

Posted 4 years 2 months ago #54937
I see, the problem has nothing to do with the menu accordeon
you have an overlay when opening the mobile menu (off-canvas) that makes it close when you can click ANYWHERE in the page, you can test yourself :)
The event registered is

function(event) {
event.preventDefault();
$('.off-canvas-menu-init').removeClass('offcanvas');
}

this makes it close on click

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by flebotomy on topic Menu Closes When Clicked

Posted 4 years 2 months ago #54938
Thank you very much for identifying...any chance you know how to remedy this?

Please Log in or Create an account to join the conversation.

Replied by flebotomy on topic Menu Closes When Clicked

Posted 4 years 2 months ago #54939
I tried removing the .JS, but that stopped the menu from opening. I then tried to hide the overlay via CSS call - no dice.

Any suggestions would be greatly appreciated!!!

Thank you very much.

Please Log in or Create an account to join the conversation.

Replied by flebotomy on topic Menu Closes When Clicked

Posted 4 years 2 months ago #54940
I also noticed that this .JS is installed on another site I am working on and this does not affect the menu - could it be something else?

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Menu Closes When Clicked

Posted 4 years 2 months ago #54941
sorry but this is totally out of my scope, you must manage that in your template or off-canvas menu ...
it seems that there are also other JS events launched in the off-canvas menu

function() {
$('.off-canvas-menu-init').removeClass('offcanvas slide-top-menu full-screen-off-canvas full-screen-off-canvas-ftop new-look-off-canvas');
}

from
www.chateaurestaurant.com/templates/flex/js/main.js

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Time to create page: 0.702 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1076 guests and one member online