Skip to content
This repository was archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
Update Address.js
Browse files Browse the repository at this point in the history
  • Loading branch information
leevigraham authored Sep 14, 2020
1 parent 68826cb commit d7193cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/assetbundles/addressfield/dist/js/Address.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@
this.getElement('countryCode').val(newCountryCode);

$.when((currentCountryCode === newCountryCode) || this.refreshCountry()).then(function () {
_this.getElement('addressLine2').val((normalisedPlace.streetNumber || '') + ' ' + (normalisedPlace.route || ''));
_this.getElement('addressLine1').val((normalisedPlace.streetNumber || '') + ' ' + (normalisedPlace.route || ''));
_this.getElement('addressLine2').val('');
_this.getElement('locality').val(normalisedPlace.locality);
_this.getElement('administrativeArea').val(normalisedPlace.administrativeAreaCode);
_this.getElement('postalCode').val(normalisedPlace.postalCode);
Expand Down

0 comments on commit d7193cf

Please sign in to comment.