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(); } });
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Order page js error’ is closed to new replies.