Mobile menu double click bug

Hi
as described here …

… there still is the problem, that it is necessary to double click on mobile menu items, instead if single click.

Seems to be only on apple devices.
I See this issue since 2021.
When will there be a solution finally?
Thank you
Hannes

Hey Hannes,

As my colleague response from the other thread, our developers are already aware of the said issue but we can’t give you any ETA. Please stay tuned.

Thank you.

I remember there has been a workaround here in the forum, with an alternative mobile menu element structure, that seemed to work. Can you find this again maybe?
Thank you!
Hannes

Hey @salilou,

Though we’ll provide a potential solution or workaround, please note that we do not guarantee this will work nor we’ll we provide further enhancements.

Try adding the following code in the Global CSS.

.ps__rail-y {
 display: none !important;
}

Also add this in the Global JS.

// Setup and fix menu buttons inside an off canvas
document.addEventListener("load", function() {
  // Get menu items
  var items = document.querySelectorAll(".x-anchor-menu-item");
  for (var i = 0; i < items.length; ++i) {
    var item = items[i];

    //console.log(item); //Make sure we're only adding it where needed

    // Touch event I don't think this issue happens
    item.addEventListener("touchstart", function(e) {
      if (!item.href) {
        return;
      }

      location.href = item.href;
    }, true);
  };
});

Thank you very much, bit this did not work.
Please see the affected site in secure note.

Hey @salilou,

Thanks for testing. We’ll test your site.

Please stay tuned.

Hello,

I actually don’t see the CSS or JS hack provided by @christian on this site. You might also have to clear a cache if you have placed this on the site, but it is not showing up as well. If those did not work could you leave them on a staging or live site so that I could test?

We are also looking to provide a fix for every site within a 6.3 point release so hopefully this long standing issue can be a thing of the past. Have a great day!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.