Skip to content

Commit bc508a5

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/code/Magento/Directory/view/frontend/web/js/region-updater.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ define([
4040
$(this.options.regionListId).on('change', $.proxy(function (e) {
4141
this.setOption = false;
4242
this.currentRegionOption = $(e.target).val();
43+
44+
if(this.currentRegionOption === '') {
45+
$(this.options.regionListId).val('');
46+
$(this.options.regionInputId).val('');
47+
}
4348
}, this));
4449

4550
$(this.options.regionInputId).on('focusout', $.proxy(function () {

0 commit comments

Comments
 (0)