Trigger country field change on address change click

This commit is contained in:
hsing 2021-03-04 16:01:07 -05:00
parent b691947442
commit 24c4c7658a
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;
},