Resolving this issue: https://stackoverflow.com/questions/75179573/how-to-fix-loading-the-google-maps-javascript-api-without-a-callback-is-not-supp
This commit is contained in:
parent
4562f7679e
commit
487c83e3a0
2 changed files with 4 additions and 3 deletions
|
|
@ -215,7 +215,7 @@ export default {
|
||||||
const apiKey = applicationConfig.GOOGLE_PLACES_API_KEY;
|
const apiKey = applicationConfig.GOOGLE_PLACES_API_KEY;
|
||||||
|
|
||||||
this.$loadScript(
|
this.$loadScript(
|
||||||
`https://maps.googleapis.com/maps/api/js?key=${apiKey}&libraries=places`
|
`https://maps.googleapis.com/maps/api/js?key=${apiKey}&libraries=places&callback=Function.prototype`
|
||||||
)
|
)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
// Script is loaded, initialize the autocomplete textbox
|
// Script is loaded, initialize the autocomplete textbox
|
||||||
|
|
|
||||||
|
|
@ -163,7 +163,9 @@ export default {
|
||||||
|
|
||||||
async setMobileLocation() {
|
async setMobileLocation() {
|
||||||
// TODO: Any lookups or actions to be taken before assigning the Mobile Location
|
// TODO: Any lookups or actions to be taken before assigning the Mobile Location
|
||||||
const zipCodeData = await this.getZipCodeData(this.internalModel.addressQuestions.zipCode);
|
const zipCodeData = await this.getZipCodeData(
|
||||||
|
this.internalModel.addressQuestions.zipCode
|
||||||
|
);
|
||||||
|
|
||||||
if (!zipCodeData.isValid) {
|
if (!zipCodeData.isValid) {
|
||||||
this.displayInvalidZipAlert = true;
|
this.displayInvalidZipAlert = true;
|
||||||
|
|
@ -173,7 +175,6 @@ export default {
|
||||||
|
|
||||||
this.closeModal();
|
this.closeModal();
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue