Title: Order page js error
Last modified: April 11, 2022

---

# Order page js error

 *  Resolved [midwestE](https://wordpress.org/support/users/edouble74/)
 * (@edouble74)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/order-page-js-error/)
 * 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 4 years, 2 months ago by [midwestE](https://wordpress.org/support/users/edouble74/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [midwestE](https://wordpress.org/support/users/edouble74/)
 * (@edouble74)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/order-page-js-error/#post-15548601)
 * 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](https://wordpress.org/support/users/trackship/)
 * (@trackship)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/order-page-js-error/#post-15549974)
 * Hi [@edouble74](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/trackship-for-woocommerce/assets/icon-256x256.png?rev=3086227)
 * [TrackShip for WooCommerce](https://wordpress.org/plugins/trackship-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/trackship-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/trackship-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/trackship-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/trackship-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/trackship-for-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [TrackShip](https://wordpress.org/support/users/trackship/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/order-page-js-error/#post-15549974)
 * Status: resolved