javascriptvoid in the first menu level

javascriptvoid in the first menu level was created by ernst

Posted 1 year 4 months ago #66596
Good day
I have the following problem on a relatively large website (bobanek.eu)
what happens is that after clicking on the menu for a while, all the 1st level links change to javscriptvoid(0). It starts to behave as if it is a touch device, after clicking it expands the submenu and the links are already fine there.
Clicking on the sub-menu fixes it for a period of time even for the first level.
No pattern of behavior can be traced in which this occurs.

Can you advise me what to do with it?

I have the latest version of maximenu
by ernst

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

Replied by ced1870 on topic javascriptvoid in the first menu level

Posted 1 year 4 months ago #66597
Hi
this is because you have all level 1 items as parent, and the submenus to open on click
you can not open the submensu and redirect the page in the same time

if you want you can test a version here
forum.joomlack.fr/index.php/4-maximenu-c...ur-menu-parent#65571

in the effects options >> click >> enable the toggler icon
this will make the arrow clickable and keep the menu link. But you will need to show the arrows in yoru menu

CEd
PS : this version is not official because I'm curretly working on the V10 of Maximenu CK and can not make any update on the V9

Joomlack Webmaster and Developer

by ced1870

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

Replied by ernst on topic javascriptvoid in the first menu level

Posted 1 year 4 months ago #66601
but I have it set so that the submenu is opened by hovering the mouse.
it just randomly happens that the submenu doesn't open and only opens when clicked. Then the clique from the first level is not active
by ernst

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

Replied by ced1870 on topic javascriptvoid in the first menu level

Posted 1 year 4 months ago #66604

I have it set so that the submenu is opened by hovering the mouse

the problem occurs on the home page. I think that you have a problem with another extension that interfers with the "mobile detection"
Maximenu CK automatically switches to the click method if the user agent has been detected as touch device, so if you have something in your page that changes the user agent, this could be the cause

Joomlack Webmaster and Developer

by ced1870

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

Replied by ernst on topic javascriptvoid in the first menu level

Posted 1 year 4 months ago #66605
unfortunately not only on the home page.
It happens randomly on all pages, this behavior cannot be simulated.
I also thought about switching to touch behavior, but I can't find anything like that.
Can you help me with this somehow?
by ernst

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

Replied by ced1870 on topic javascriptvoid in the first menu level

Posted 1 year 4 months ago #66606
go in the module file
modules/mod_maximenuck
and comment the lines 135+136 like that
Code:
// $behavior = 'click'; // $ismobile = '1';
check if the problem is gone

Joomlack Webmaster and Developer

by ced1870

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

Time to create page: 0.661 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 944 guests and no members online