File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/code/Magento/Checkout/view/frontend/web/js Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -162,9 +162,11 @@ define([
162
162
this . _clearError ( ) ;
163
163
this . _checkRegionRequired ( country ) ;
164
164
165
+ $ ( regionList ) . find ( 'option:selected' ) . removeAttr ( 'selected' ) ;
166
+ regionInput . val ( '' ) ;
167
+
165
168
// Populate state/province dropdown list if available or use input box
166
169
if ( this . options . regionJson [ country ] ) {
167
- $ ( regionList ) . find ( 'option:selected' ) . removeAttr ( 'selected' ) ;
168
170
this . _removeSelectOptions ( regionList ) ;
169
171
$ . each ( this . options . regionJson [ country ] , $ . proxy ( function ( key , value ) {
170
172
this . _renderSelectOption ( regionList , key , value ) ;
@@ -199,7 +201,6 @@ define([
199
201
regionInput . hide ( ) ;
200
202
label . attr ( 'for' , regionList . attr ( 'id' ) ) ;
201
203
} else {
202
- regionInput . val ( '' ) ;
203
204
this . _removeSelectOptions ( regionList ) ;
204
205
205
206
if ( this . options . isRegionRequired ) {
You can’t perform that action at this time.
0 commit comments