Correct year length validation

This commit is contained in:
George Drummond
2019-01-28 09:45:14 -05:00
parent 1143a34bda
commit 24dd55acd9

View File

@@ -50,7 +50,7 @@
<label>Year</label> <label>Year</label>
<input <input
id="date-year" id="date-year"
maxlength="2" maxlength="4"
type="number" type="number"
v-model="year" v-model="year"
{% if maxdate %}max="{{ maxdate.year }}"{% endif %} {% if maxdate %}max="{{ maxdate.year }}"{% endif %}