From 040d30c96e650405d97cf24cc553404605f188b3 Mon Sep 17 00:00:00 2001 From: Scott Kiener Date: Tue, 15 Jul 2025 14:12:02 -0400 Subject: [PATCH] Removed focusOnZipInput logic --- .../shop-question/shop-question-popup.vue | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/layouts/service-location/shop-question/shop-question-popup.vue b/src/layouts/service-location/shop-question/shop-question-popup.vue index 3a314dd86..4a3ce6a57 100644 --- a/src/layouts/service-location/shop-question/shop-question-popup.vue +++ b/src/layouts/service-location/shop-question/shop-question-popup.vue @@ -26,7 +26,6 @@ class="shop-question-zipcode" customInputId="serviceZipCode" v-model="internalModel.zipCode" - v-on="{ 'textboxQuestionEvent.inputIdAssigned': onInputIdAssigned }" cmsWidgetName="ServiceZipQuestionWidget" @search-icon-click="onSearchZip" @keydown.enter="onSearchZip" @@ -298,7 +297,6 @@ export default { this.localShopProviderData = this.shopProviderData; this.answers = []; this.onSearchZip(); - this.focusOnZipInput(); this.selectedProviderNumber = this.preSelectedProviderNumber; if ( (!this.selectedProviderNumber || @@ -334,8 +332,7 @@ export default { ); if (!zipCodeData.isValid) { this.displayInvalidZipAlert = true; - //this.selectedProviderNumber = null; - this.focusOnZipInput(); + this.resetModalButtonStyle(); } else { if (this.isVehicleHeavyTruck) { @@ -348,7 +345,6 @@ export default { if (!closestShops || closestShops.providers?.length === 0) { this.displayNoServiceAlert = true; - this.focusOnZipInput(); this.resetModalButtonStyle(); return null; } @@ -452,13 +448,6 @@ export default { resetModalButtonStyle() { this.modal.resetButtonStyle(); }, - onInputIdAssigned(inputId) { - this.serviceZipCodeTextInputId = inputId; - }, - focusOnZipInput() { - const input = document.getElementById(this.serviceZipCodeTextInputId); - input?.focus(); - }, resetAlerts() { this.displayInvalidZipAlert = false; this.displayNoServiceAlert = false; @@ -483,7 +472,6 @@ export default { if (!zipCodeData.isValid) { this.displayInvalidZipAlert = true; - this.focusOnZipInput(); this.resetModalButtonStyle(); } else { if (this.isVehicleHeavyTruck) { @@ -496,7 +484,6 @@ export default { if (!closestShops || closestShops.providers?.length === 0) { this.displayNoServiceAlert = true; - this.focusOnZipInput(); this.resetModalButtonStyle(); return null; }