I am trying to use angular-ui-mask with angular-ui-bootstrap datepicker component.
When I use this, the input gets assigned with ng-invalid-date classes even though the date is valid date and date gets cleared after I focus out of the field.
I don't want to use HTML input with type='date'
as it is not supported by all browsers.
plunker for the same:
http://plnkr.co/edit/dW4AIlF37CLbSHf553d3?p=preview
<input type="text" class="form-control" ui-mask="99/99/9999" uib-datepicker-popup ng-model="dt" is-open="status.opened" min-date="minDate" max-date="maxDate" datepicker-options="dateOptions" date-disabled="disabled(date, mode)" ng-required="true" close-text="Close" />
Inspect element to see classes assigned to it.