Fix issue with jQuery migration and editing addresses in wp-admin

This commit is contained in:
Jonathan Sadowski 2021-06-09 16:06:18 -05:00
parent 2cf30b0190
commit 4d32ef0dac
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ jQuery( function ( $ ) {
is_billing = Boolean( $edit_address.find( 'input[name^="_billing_"]' ).length ); is_billing = Boolean( $edit_address.find( 'input[name^="_billing_"]' ).length );
$address.hide(); $address.hide();
$this.parent().find( 'a' ).trigger( 'toggle' ); $this.parent().find( 'a' ).toggle();
if ( ! $country_input.val() ) { if ( ! $country_input.val() ) {
$country_input.val( woocommerce_admin_meta_boxes_order.default_country ).trigger( 'change' ); $country_input.val( woocommerce_admin_meta_boxes_order.default_country ).trigger( 'change' );