• Resolved midwestE

    (@edouble74)


    When viewing an order on the order page this event handler I believe is missing the argument (event) and causes a js error.

    /wp-content/plugins/trackship-for-woocommerce/assets/js/trackship.js

    jquery.js?ver=3.6.0:4059 Uncaught TypeError: Cannot read properties of undefined (reading 'target')
        at HTMLDocument.<anonymous> (trackship.js?ver=1.3.5:203:27)
        at HTMLDocument.dispatch (jquery.js?ver=3.6.0:5430:27)
        at HTMLDocument.elemData.handle (jquery.js?ver=3.6.0:5234:28)
        at Object.trigger (jquery.js?ver=3.6.0:8719:12)
        at HTMLAnchorElement.<anonymous> (jquery.js?ver=3.6.0:8797:17)
        at Function.each (jquery.js?ver=3.6.0:385:19)
        at jQuery.fn.init.each (jquery.js?ver=3.6.0:207:17)
        at jQuery.fn.init.trigger (jquery.js?ver=3.6.0:8796:15)
        at HTMLDivElement.<anonymous> (meta-boxes.js?ver=6.3.1:47:58)
        at Function.each (jquery.js?ver=3.6.0:385:19)

    I

    jQuery(document).click(function(){
        var $trigger = jQuery(".trackship_dropdown");
        if($trigger !== event.target && !$trigger.has(event.target).length){
          jQuery(".trackship-dropdown-content").hide();
        }   
    });

    Think it should be:

    jQuery(document).click(function(event){
        var $trigger = jQuery(".trackship_dropdown");
        if($trigger !== event.target && !$trigger.has(event.target).length){
          jQuery(".trackship-dropdown-content").hide();
        }   
    });
    • This topic was modified 2 years, 7 months ago by midwestE.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter midwestE

    (@edouble74)

    Also line ~868

    jQuery(document).click(function (event) {
        var $trigger = jQuery(".woocommerce-layout__activity-panel");
        if ($trigger !== event.target && !$trigger.has(event.target).length) {
            jQuery('#activity-panel-tab-help').removeClass('is-active');
            jQuery('.woocommerce-layout__activity-panel-wrapper').removeClass('is-open is-switching');
        }
    });
    Plugin Author TrackShip

    (@trackship)

    Hi @edouble74,
    We fixed this issue and We will release this fixed in the next version.
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Order page js error’ is closed to new replies.