This commit is contained in:
Leah Schumann 2023-03-28 13:20:12 -04:00
parent 04854a455c
commit 0bde42e0d2
3 changed files with 8 additions and 4 deletions

View file

@ -29,7 +29,7 @@
<modalButtonMain
isPrimary
class="w-100"
ref="buttonMain"
ref="modalButtonMain"
loaderColor="white"
:buttonText="footerButtonText"
@click-event="validateAndEmit"
@ -79,7 +79,7 @@ export default {
}
},
resetButtonStyle() {
this.$refs.buttonMain.resetButtonStyle();
this.$refs.modalButtonMain.resetButtonStyle();
},
onModalOpened() {
this.onModalOpenedCallback?.();

View file

@ -161,6 +161,7 @@ export default {
},
onModalClosed() {
this.internalModel = deepClone(this.modelValue);
this.resetAlerts();
},
resetComponent(updatedServiceZipCodeInfo) {
// Reset the validation form, setting the initial values
@ -179,6 +180,9 @@ export default {
resetModalButtonStyle() {
this.$refs[this.modalName].resetButtonStyle();
},
resetAlerts() {
this.$refs.addressQuestions.displayVerificationWarning = false;
},
async setMobileLocation() {
// Validate the Zip Code
const zipCodeData = await this.getZipCodeData(

View file

@ -29,7 +29,7 @@
cmsWidgetName="ServiceTypeQuestionWidget"
validationRules="option-required" />
<mobileLocationModalQuestions
v-if="selectedServiceType === 'Mobile'"
v-show="selectedServiceType === 'Mobile'"
v-model="mobileLocationQuestions"
:mobileFeePart="mobileFeePart"
@updated-mobile-fee-part="setMobileFeePart"
@ -39,7 +39,7 @@
linkWidgetName="MobileLocationLinkWidget"
modalWidgetName="MobileLocationModalWidget" />
<textboxQuestion
v-if="selectedServiceType === 'Mobile'"
v-show="selectedServiceType === 'Mobile'"
ref="mobileLocationQuestionsError"
v-model="mobileLocationValidationField"
validationRules="mobile-location-required"