Merge pull request #29282 from hsingyuc/fix/29261

Trigger country field change on address change click
This commit is contained in:
Roy Ho 2021-03-12 12:55:34 -08:00 committed by GitHub
commit b04e08fb52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -180,6 +180,7 @@ jQuery( function( $ ) {
*/
toggle_shipping: function() {
$( '.shipping-calculator-form' ).slideToggle( 'slow' );
$( 'select.country_to_state, input.country_to_state' ).trigger( 'change' );
$( document.body ).trigger( 'country_to_state_changed' ); // Trigger select2 to load.
return false;
},