Removed focusOnZipInput logic
This commit is contained in:
parent
c0e6817a2d
commit
040d30c96e
1 changed files with 1 additions and 14 deletions
|
|
@ -26,7 +26,6 @@
|
||||||
class="shop-question-zipcode"
|
class="shop-question-zipcode"
|
||||||
customInputId="serviceZipCode"
|
customInputId="serviceZipCode"
|
||||||
v-model="internalModel.zipCode"
|
v-model="internalModel.zipCode"
|
||||||
v-on="{ 'textboxQuestionEvent.inputIdAssigned': onInputIdAssigned }"
|
|
||||||
cmsWidgetName="ServiceZipQuestionWidget"
|
cmsWidgetName="ServiceZipQuestionWidget"
|
||||||
@search-icon-click="onSearchZip"
|
@search-icon-click="onSearchZip"
|
||||||
@keydown.enter="onSearchZip"
|
@keydown.enter="onSearchZip"
|
||||||
|
|
@ -298,7 +297,6 @@ export default {
|
||||||
this.localShopProviderData = this.shopProviderData;
|
this.localShopProviderData = this.shopProviderData;
|
||||||
this.answers = [];
|
this.answers = [];
|
||||||
this.onSearchZip();
|
this.onSearchZip();
|
||||||
this.focusOnZipInput();
|
|
||||||
this.selectedProviderNumber = this.preSelectedProviderNumber;
|
this.selectedProviderNumber = this.preSelectedProviderNumber;
|
||||||
if (
|
if (
|
||||||
(!this.selectedProviderNumber ||
|
(!this.selectedProviderNumber ||
|
||||||
|
|
@ -334,8 +332,7 @@ export default {
|
||||||
);
|
);
|
||||||
if (!zipCodeData.isValid) {
|
if (!zipCodeData.isValid) {
|
||||||
this.displayInvalidZipAlert = true;
|
this.displayInvalidZipAlert = true;
|
||||||
//this.selectedProviderNumber = null;
|
|
||||||
this.focusOnZipInput();
|
|
||||||
this.resetModalButtonStyle();
|
this.resetModalButtonStyle();
|
||||||
} else {
|
} else {
|
||||||
if (this.isVehicleHeavyTruck) {
|
if (this.isVehicleHeavyTruck) {
|
||||||
|
|
@ -348,7 +345,6 @@ export default {
|
||||||
|
|
||||||
if (!closestShops || closestShops.providers?.length === 0) {
|
if (!closestShops || closestShops.providers?.length === 0) {
|
||||||
this.displayNoServiceAlert = true;
|
this.displayNoServiceAlert = true;
|
||||||
this.focusOnZipInput();
|
|
||||||
this.resetModalButtonStyle();
|
this.resetModalButtonStyle();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
@ -452,13 +448,6 @@ export default {
|
||||||
resetModalButtonStyle() {
|
resetModalButtonStyle() {
|
||||||
this.modal.resetButtonStyle();
|
this.modal.resetButtonStyle();
|
||||||
},
|
},
|
||||||
onInputIdAssigned(inputId) {
|
|
||||||
this.serviceZipCodeTextInputId = inputId;
|
|
||||||
},
|
|
||||||
focusOnZipInput() {
|
|
||||||
const input = document.getElementById(this.serviceZipCodeTextInputId);
|
|
||||||
input?.focus();
|
|
||||||
},
|
|
||||||
resetAlerts() {
|
resetAlerts() {
|
||||||
this.displayInvalidZipAlert = false;
|
this.displayInvalidZipAlert = false;
|
||||||
this.displayNoServiceAlert = false;
|
this.displayNoServiceAlert = false;
|
||||||
|
|
@ -483,7 +472,6 @@ export default {
|
||||||
|
|
||||||
if (!zipCodeData.isValid) {
|
if (!zipCodeData.isValid) {
|
||||||
this.displayInvalidZipAlert = true;
|
this.displayInvalidZipAlert = true;
|
||||||
this.focusOnZipInput();
|
|
||||||
this.resetModalButtonStyle();
|
this.resetModalButtonStyle();
|
||||||
} else {
|
} else {
|
||||||
if (this.isVehicleHeavyTruck) {
|
if (this.isVehicleHeavyTruck) {
|
||||||
|
|
@ -496,7 +484,6 @@ export default {
|
||||||
|
|
||||||
if (!closestShops || closestShops.providers?.length === 0) {
|
if (!closestShops || closestShops.providers?.length === 0) {
|
||||||
this.displayNoServiceAlert = true;
|
this.displayNoServiceAlert = true;
|
||||||
this.focusOnZipInput();
|
|
||||||
this.resetModalButtonStyle();
|
this.resetModalButtonStyle();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue