Merge pull request #311 from dod-ccpo/consistent-error-messages

Always use the front-end validation message
This commit is contained in:
andrewdds 2018-09-21 09:56:02 -04:00 committed by GitHub
commit 9e712c4ef9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,8 +69,7 @@
<input type='hidden' v-bind:value='rawValue' name='{{ field.name }}' />
<template v-if='showError'>
<span v-if='initialErrors' v-for='error in initialErrors' class='usa-input__message' v-html='error'></span>
<span v-if='!initialErrors' class='usa-input__message' v-html='validationError'></span>
<span class='usa-input__message' v-html='validationError'></span>
</template>
</div>