diff --git a/src/layouts/service-location/shop-address/shop-address.vue b/src/layouts/service-location/shop-address/shop-address.vue index 8c146aa1..14be8168 100644 --- a/src/layouts/service-location/shop-address/shop-address.vue +++ b/src/layouts/service-location/shop-address/shop-address.vue @@ -153,6 +153,7 @@ export default { dropdownVariants, renderServiceZip: true, errorMessage: '', + openingModal: false, SERVICE_ZIP_QUESTION_REF_NAME }; }, @@ -234,6 +235,9 @@ export default { }, watch: { async internalZipcode() { + if(this.openingModal) { + return; + } const shopsUpdated = await this.updateShops(); if (shopsUpdated) { await this.$nextTick(); @@ -241,6 +245,9 @@ export default { } }, async searchRadiusInMiles() { + if(this.openingModal) { + return; + } await this.updateShops(); } }, @@ -274,12 +281,16 @@ export default { this.$refs[this.modalName].closeModal(); }, onModalOpened() { + this.openingModal = true; this.internalZipcode = this.serviceZipcode; this.searchRadiusInMiles = "25"; this.nearbyShops = []; this.updateShops(true).then(() => { this.internalProviderNumber = this.nearbyShops[0]?.providerNumber; }); + this.$nextTick().then(() => { + this.openingModal = false; + }); this.forceServiceZipRerender(); }, async updateSelectedProvider() {