This topic contains 3 replies, has 2 voices, and was last updated by Sean Sean 2 years, 2 months ago.

layout_offcanvas_mobile_menu.html issues ….


  • pierol
    Participant

    Posts: 6
    Member Reply #7558

    There is a mistake at line 138 of layout.js file:

    // offcanvas mobile menu
    $('.page-sidebar-mobile-offcanvas .responsive-toggler').click(function() {
    $('body').toggleClass('page-sidebar-mobile-offcanvas-open');
    e.preventDefault();
    e.stopPropagation();
    });

    the e parameter is not passed to the event handler so the e.preventDefault() generate an error. The strange thing is if you correct it passing the e parameter to the event handler you can’t close the sidebar-mobile-offcanvas because a double click event is generated.

    Could you please help me to solve this issue ?

    • This topic was modified 2 years, 2 months ago by  pierol.
    • This topic was modified 2 years, 2 months ago by  pierol.

    pierol
    Participant

    Posts: 6
    Member Reply #7561

    After some more invastigation it seems that the problem happens when i include angular.min.js in the page.


    pierol
    Participant

    Posts: 6
    Member Reply #7562

    I commented this code in layout.js

    // handle menu close for angularjs version
    //if (App.isAngularJsApp()) {
    // $(".page-sidebar-menu li > a").on("click", function(e) {
    // if (App.getViewPort().width < resBreakpointMd && $(this).next().hasClass('sub-menu') === false) {
    // $('.page-header .responsive-toggler').click();
    // }
    // });
    //}

    and now the side effect is disappered.

    Sean
    Sean
    Keymaster

    Posts: 4527
    Support Staff Reply #7572

    Hi,

    Thanks for your feedback on this. We will investigate it further and fix in the next update very soon. Stay tuned!

    Thanks.

You must be logged in to reply to this topic.