我正在嘗試使用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