[Time Conductor] Display invalid state

...when text value can be parsed in a date-time field,
but numeric value violates externally-imposed validation
This commit is contained in:
Victor Woeltjen 2016-01-11 15:29:43 -08:00
parent e6d0537e5e
commit 11b71fae68

View File

@ -24,7 +24,10 @@
<input type="text"
ng-model="textValue"
ng-blur="restoreTextValue(); ngBlur()"
ng-class="{ error: textInvalid }">
ng-class="{
error: textInvalid,
test: structure.validate && !structure.validate(ngModel[field])
}">
</input>
<a class="ui-symbol icon icon-calendar"
ng-if="structure.format === 'utc' || !structure.format"