Merge pull request #1258 from Safelite/defect/CSR-1485-2

Defect/csr 1485
This commit is contained in:
chloeherdsafelite 2023-07-20 09:31:34 -04:00 committed by GitHub
commit 802e8f3e3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,7 @@
:class="[!isLoading ? 'date-picker-hidden' : '']"
loaderColor="blue"
loaderPosition="center" />
<div class="row form-test-error">
<div class="row form-test-error" id="date-of-month-error">
<ErrorMessage name="date-of-month" class="small mt-1"></ErrorMessage>
</div>
<button
@ -675,6 +675,12 @@ export default {
value: newValue,
});
},
errorMessage(newValue, oldValue) {
// Check for changing from no error message to some error message.
if (newValue && !oldValue) {
this.scrollToElement("date-of-month-error");
}
},
},
components: {
loader,