我正在尝试使用angular-ui-mask与角度ui-bootstrap datepicker组件。角度ui面具不与角-ui datepicker
当我使用这个时,即使日期有效,日期和日期在我离开字段后被清除,输入也会被赋予ng-invalid-date类。
我不想在type='date'
中使用HTML输入,因为它不被所有浏览器支持。
plunker对于相同:
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" />
检查元件看分配给它的类。
@Anil Natha,感谢您对问题的重新格式化。 – Sreekanth