Merge pull request #30076 from woocommerce/fix/30075

Fix issue with jQuery migration and editing addresses in wp-admin
This commit is contained in:
Roy Ho 2021-06-09 14:47:18 -07:00 committed by GitHub
commit 042582e022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 );
$address.hide();
$this.parent().find( 'a' ).trigger( 'toggle' );
$this.parent().find( 'a' ).toggle();
if ( ! $country_input.val() ) {
$country_input.val( woocommerce_admin_meta_boxes_order.default_country ).trigger( 'change' );