From 621b2c18a4c99322c204c83ee6de05272cf196fb Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Wed, 15 Feb 2023 09:11:58 -0500 Subject: [PATCH] getting ready to revert model structure on page level --- .../address-questions/address-questions.vue | 2 +- .../mobile-location-modal-questions.vue | 13 ++++++++----- src/layouts/service-location/service-location.vue | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/layouts/address-lookup/customer-questions/address-questions/address-questions.vue b/src/layouts/address-lookup/customer-questions/address-questions/address-questions.vue index 86f468076..2b1ed8d03 100644 --- a/src/layouts/address-lookup/customer-questions/address-questions/address-questions.vue +++ b/src/layouts/address-lookup/customer-questions/address-questions/address-questions.vue @@ -111,7 +111,7 @@ export default { streetAddress: "", apartmentNumberOrBusinessName: "", city: "", - state: "", + state: null, zipCode: "", }), }, diff --git a/src/layouts/service-location/mobile-location-modal-questions/mobile-location-modal-questions.vue b/src/layouts/service-location/mobile-location-modal-questions/mobile-location-modal-questions.vue index 201a28a08..dbdfc9212 100644 --- a/src/layouts/service-location/mobile-location-modal-questions/mobile-location-modal-questions.vue +++ b/src/layouts/service-location/mobile-location-modal-questions/mobile-location-modal-questions.vue @@ -136,11 +136,14 @@ export default { this.resetModel(); // Reset the validation form - this.$refs[this.modalName].form.resetForm({ - values: { - state: this.modelValue.addressQuestions.state, - }, - }); + this.$refs[this.modalName].form.resetForm(); + // { + // values: { + // state: this.modelValue.addressQuestions.state, + // zipCode: this.modelValue.addressQuestions.zipCode, + // }, + // dirty: false, + // }); // Reinitialize the Address Auto Complete this.$refs.addressQuestions.setupAddressLookup(); diff --git a/src/layouts/service-location/service-location.vue b/src/layouts/service-location/service-location.vue index d8295edd5..ac4e7501b 100644 --- a/src/layouts/service-location/service-location.vue +++ b/src/layouts/service-location/service-location.vue @@ -129,7 +129,7 @@ export default { streetAddress: "", apartmentNumberOrBusinessName: "", city: "", - state: "", + state: null, zipCode: "", }, isVehicleProtected: null,