From c274e16aac3f0096bedd9cc2eac770f32fb4ea6b Mon Sep 17 00:00:00 2001 From: Matt Caimi Date: Thu, 9 Feb 2023 10:54:07 -0500 Subject: [PATCH] CSR-1012 | updated zip input watch --- .../service-zip-modal-question.vue | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/layouts/service-location/service-zip-modal-question/service-zip-modal-question.vue b/src/layouts/service-location/service-zip-modal-question/service-zip-modal-question.vue index 9af9876e5..c97b1846d 100644 --- a/src/layouts/service-location/service-zip-modal-question/service-zip-modal-question.vue +++ b/src/layouts/service-location/service-zip-modal-question/service-zip-modal-question.vue @@ -127,6 +127,7 @@ export default { if (!zipCodeData.isValid) { this.displayInvalidZipAlert = true; + this.focusOnZipInput(); } else { this.serviceZipModel = { serviceState: zipCodeData.state, @@ -167,15 +168,10 @@ export default { }, }, }, - mounted() { - this.$watch( - () => { - return this.$refs.zipInputTextQuestion.value; - }, - (val) => { - this.resetsOnZipInput(); - } - ); + watch: { + serviceZipCodeInput() { + this.resetsOnZipInput(); + }, }, components: { textLink,