Okay
  Public Ticket #962642
Navigation not working on IE
Closed

Comments

  •  2
    Mechanised started the conversation

    Hello, 

    We have noticed that when using IE on Windows 10 you cannot select the main category e.g. Baby's Room, Pushchairs etc. It just shows the dropdown menu. In any other browser you can click on the parent category and view all the products.

    We've found the code that is causing this issue...

    In file /wp-content/themes/aurum/assets/js/aurum-custom.js there’s a function which manipulates with menu items.

    Function looks:


    // Setup Menu
    var subMenuVisibleClass = 'sub-visible';

    publicVars.$mainMenu.find('li:has(> ul)').each(function(i, el)
    {
    var $li = $(el),
    $a = $li.find( '> a' );

    $a.on( 'click', function( ev ) {
    if ( is_touch_device() ) {
    return false;
    }
    } );

    $li.hoverIntent({
    over: function(){
    $li.addClass(subMenuVisibleClass);
    },
    out: function(){
    $li.removeClass(subMenuVisibleClass);
    },
    interval: 50,
    timeout: 250
    });
    });
    and
    if ( is_touch_device() ) {
    return false;
    }

    We could comment out the code but we don't know how it will affect other parts of the site and future updates.

    Thanks,

    Oliver

  •   [deleted] replied privately