Merge pull request #1258 from Safelite/defect/CSR-1485-2
Defect/csr 1485
This commit is contained in:
commit
802e8f3e3e
1 changed files with 7 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue