Add front end validation that enforces that PoP end is after start

This commit is contained in:
leigh-mil
2019-08-01 16:53:32 -04:00
parent 25ab64f748
commit e1fbac5a52
4 changed files with 51 additions and 19 deletions

View File

@@ -44,6 +44,7 @@
type="number"
v-bind:class="{ 'usa-input-error': (month && !isMonthValid) }"
v-model="month"
v-on:change="onInput"
/>
</div>
@@ -79,12 +80,6 @@
{{ Icon("ok", classes="icon--green") }}
</div>
</div>
<p class="usa-input-error-message" v-bind:class='{% if field.errors %}"form-has-errors"{% endif %}'>
{% if field.errors %}
{{ field.errors[0] }}
{% endif %}
</p>
</fieldset>
</date-selector>