Skip to content

Commit ea49234

Browse files
committed
ACP2E-1609: Region Field is not getting blank after selecting any region for a country
1 parent 6c72b03 commit ea49234

File tree

1 file changed

+4
-2
lines changed
  • app/code/Magento/Customer/view/adminhtml/web/js/form/element

1 file changed

+4
-2
lines changed

app/code/Magento/Customer/view/adminhtml/web/js/form/element/region.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ define([
1919
* @param {String} value - region
2020
*/
2121
setDifferedFromDefault: function (value) {
22-
var label = parseFloat(value) ? this.indexedOptions[value].label : '';
23-
2422
this._super();
23+
24+
let label = parseFloat(value) ? this.indexedOptions[value].label : '';
25+
2526
this.source.set(this.regionScope,label);
27+
2628
}
2729
});
2830
});

0 commit comments

Comments
 (0)