From a4dd4340b06b35b7f49bb1d453be3f10649c327d Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Wed, 15 Feb 2023 11:13:31 -0500 Subject: [PATCH] WIP --- .../textbox-question/textbox-question.vue | 2 + .../address-questions/address-questions.vue | 2 +- .../mobile-location-modal-questions.vue | 10 ++- .../service-location/service-location.vue | 83 ++++++------------- .../service-zip-question.vue | 1 + 5 files changed, 37 insertions(+), 61 deletions(-) diff --git a/src/digital-components/textbox-question/textbox-question.vue b/src/digital-components/textbox-question/textbox-question.vue index 5fa93dc0c..9d9976d0e 100644 --- a/src/digital-components/textbox-question/textbox-question.vue +++ b/src/digital-components/textbox-question/textbox-question.vue @@ -26,6 +26,7 @@ iconRight ? 'icon-right' : '', cornerStyle === 'rounded' ? 'rounded-pill' : '', ]" + :autocomplete="preventAutoFill && 'do-not-autofill'" :validationRules="validationRules" @change="handleChange" @blur="handleChange" @@ -76,6 +77,7 @@ export default { questionAlignment: String, // Left or center. Left is default. cornerStyle: String, // Rounded or square. Square is default. includeSearchIcon: Boolean, + preventAutoFill: Boolean, }, setup(props) { const propsClone = Object.assign({}, props); 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 2b1ed8d03..86f468076 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: null, + state: "", 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 dbdfc9212..548a3da68 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 @@ -65,10 +65,10 @@ export default { zipCode: "", }, isVehicleProtected: null, - isZipServiceableMobile: null, - isZipServiceableInShop: null, }), }, + isZipServiceableMobile: Boolean, + isZipServiceableInShop: Boolean, serviceZipCode: String, linkWidgetName: String, modalWidgetName: String, @@ -173,6 +173,12 @@ export default { modelValue(newValue) { this.internalModel = this.copyModel(newValue); }, + internalModel: { + handler(newValue) { + console.log(newValue); + }, + deep: true + } }, components: { textLink, diff --git a/src/layouts/service-location/service-location.vue b/src/layouts/service-location/service-location.vue index ac4e7501b..f50359b53 100644 --- a/src/layouts/service-location/service-location.vue +++ b/src/layouts/service-location/service-location.vue @@ -5,15 +5,15 @@