Merge pull request #25540 from woocommerce/fix/25358
Find the correct form element to update.
This commit is contained in:
commit
a85dc86978
|
@ -168,7 +168,10 @@ jQuery( function( $ ) {
|
|||
|
||||
$( '.wc-wizard-services' ).on( 'change', '.wc-wizard-shipping-method-enable', function() {
|
||||
var checked = $( this ).is( ':checked' );
|
||||
var selectedMethod = $( '.wc-wizard-shipping-method-select .method' ).val();
|
||||
var selectedMethod = $( this )
|
||||
.closest( '.wc-wizard-service-item' )
|
||||
.find( '.wc-wizard-shipping-method-select .method' )
|
||||
.val();
|
||||
|
||||
$( this )
|
||||
.closest( '.wc-wizard-service-item' )
|
||||
|
|
Loading…
Reference in New Issue