CSR-1012 | updated zip input watch

This commit is contained in:
Matt Caimi 2023-02-09 10:54:07 -05:00
parent d5ab28c598
commit c274e16aac

View file

@ -127,6 +127,7 @@ export default {
if (!zipCodeData.isValid) { if (!zipCodeData.isValid) {
this.displayInvalidZipAlert = true; this.displayInvalidZipAlert = true;
this.focusOnZipInput();
} else { } else {
this.serviceZipModel = { this.serviceZipModel = {
serviceState: zipCodeData.state, serviceState: zipCodeData.state,
@ -167,15 +168,10 @@ export default {
}, },
}, },
}, },
mounted() { watch: {
this.$watch( serviceZipCodeInput() {
() => { this.resetsOnZipInput();
return this.$refs.zipInputTextQuestion.value; },
},
(val) => {
this.resetsOnZipInput();
}
);
}, },
components: { components: {
textLink, textLink,