Fix broken details toggle with `e.target`

- instead of `this` (arrow function)
This commit is contained in:
Justin Palmer 2023-11-14 15:01:12 +01:00
parent 49dff0eb9c
commit 3ceb27ad21
No known key found for this signature in database
GPG Key ID: ACAB7C35AA2577AF
1 changed files with 1 additions and 1 deletions

View File

@ -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 = '';