diff --git a/CHANGELOG-PUBLIC.MD b/CHANGELOG-PUBLIC.MD index f536a3c..57d64be 100644 --- a/CHANGELOG-PUBLIC.MD +++ b/CHANGELOG-PUBLIC.MD @@ -65,3 +65,7 @@ RIV-534 support Enhanced Checkout MNB-1843 User submitted enhancement to refactor add new address UI. MNB-1789 Fix for street address becoming uneditable on Google API error +## 20.5.1 (2022-01-17) +MNB-1966 Fix for Quebec not populating and added CSP whitelist + + diff --git a/CHANGELOG.MD b/CHANGELOG.MD index f536a3c..57d64be 100755 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -65,3 +65,7 @@ RIV-534 support Enhanced Checkout MNB-1843 User submitted enhancement to refactor add new address UI. MNB-1789 Fix for street address becoming uneditable on Google API error +## 20.5.1 (2022-01-17) +MNB-1966 Fix for Quebec not populating and added CSP whitelist + + diff --git a/composer.json b/composer.json index 2478200..f1768e2 100755 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "shipperhq/module-address-autocomplete", "description": "ShipperHQ Address Autocomplete Tool", "type": "magento2-module", - "version": "20.5.0", + "version": "20.5.1", "license": [ "OSL-3.0", "AFL-3.0" diff --git a/src/etc/csp_whitelist.xml b/src/etc/csp_whitelist.xml index 21a62b3..c396b37 100644 --- a/src/etc/csp_whitelist.xml +++ b/src/etc/csp_whitelist.xml @@ -1,4 +1,14 @@ + + diff --git a/src/view/frontend/web/js/autocomplete.js b/src/view/frontend/web/js/autocomplete.js index b460c21..1fe84b7 100644 --- a/src/view/frontend/web/js/autocomplete.js +++ b/src/view/frontend/web/js/autocomplete.js @@ -168,6 +168,7 @@ define([ if (region == 'Québec') { region = 'Quebec' } + if (uiRegistry.get('checkout.steps.shipping-step.shippingAddress.shipping-address-fieldset.region_id')) { var regionDomId = uiRegistry.get('checkout.steps.shipping-step.shippingAddress.shipping-address-fieldset.region_id').uid; if ($('#'+regionDomId).length) {