Menu Closes When Clicked
4 years 9 months ago #54937
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Menu Closes When Clicked
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
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
this makes it close on clickfunction(event) {
event.preventDefault();
$('.off-canvas-menu-init').removeClass('offcanvas');
}
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
4 years 9 months ago #54938
by flebotomy
Replied by flebotomy on topic Menu Closes When Clicked
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.
4 years 9 months ago #54939
by flebotomy
Replied by flebotomy on topic Menu Closes When Clicked
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.
Any suggestions would be greatly appreciated!!!
Thank you very much.
Please Log in or Create an account to join the conversation.
4 years 9 months ago #54940
by flebotomy
Replied by flebotomy on topic Menu Closes When Clicked
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.
4 years 9 months ago #54941
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Menu Closes When Clicked
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
www.chateaurestaurant.com/templates/flex/js/main.js
it seems that there are also other JS events launched in the off-canvas menu
fromfunction() {
$('.off-canvas-menu-init').removeClass('offcanvas slide-top-menu full-screen-off-canvas full-screen-off-canvas-ftop new-look-off-canvas');
}
www.chateaurestaurant.com/templates/flex/js/main.js
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
Time to create page: 0.230 seconds