Fix broken details toggle with `e.target`
- instead of `this` (arrow function)
This commit is contained in:
parent
49dff0eb9c
commit
3ceb27ad21
|
@ -9,7 +9,7 @@ jQuery( document ).ready( ( $ ) => {
|
|||
// Handle the "Details" container toggle.
|
||||
$( '.woocommerce-order-source-attribution-details-toggle' )
|
||||
.on( 'click', ( e ) => {
|
||||
var $this = $( this );
|
||||
var $this = $( e.target );
|
||||
var $container = $this.siblings( '.woocommerce-order-source-attribution-details-container' );
|
||||
var toggle = '';
|
||||
|
||||
|
|
Loading…
Reference in New Issue