From 1b2a17cd137a32718d9732905adabd6d9ed843cc Mon Sep 17 00:00:00 2001 From: Enrique Guadalupe Date: Thu, 25 Jan 2018 14:41:57 +0100 Subject: [PATCH] Clean region when select country --- .../Magento/Checkout/view/frontend/web/js/region-updater.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/code/Magento/Checkout/view/frontend/web/js/region-updater.js b/app/code/Magento/Checkout/view/frontend/web/js/region-updater.js index 79050ca087740..dacebd75c3c68 100644 --- a/app/code/Magento/Checkout/view/frontend/web/js/region-updater.js +++ b/app/code/Magento/Checkout/view/frontend/web/js/region-updater.js @@ -195,6 +195,8 @@ define([ regionInput.hide(); label.attr('for', regionList.attr('id')); } else { + this._removeSelectOptions(regionList); + if (this.options.isRegionRequired) { regionInput.addClass('required-entry').removeAttr('disabled'); requiredLabel.addClass('required');