restorando / angular-pickadate

A simple and fluid inline datepicker for AngularJS with no extra dependencies.
MIT License
273 stars 91 forks source link

Prematurely adding ng-invalid and ng-invalid-date #81

Closed red2678 closed 7 years ago

red2678 commented 8 years ago

I am using the pickadate directive (v1.0.0) like so:

<input pickadate ng-model="date" format="mm/dd/yyyy" />

Before the form has been submitted, and before the input has even been touched, it has the ng-invalid and ng-invalid-date classes applied.

I am looking for the ability to have angular-pickadate not validate the input at all.

Here is a plunker. This plunker is using version 1.1.0. When you open it before even touching the element, inspect it and you will see the classes are already added on the input.

http://plnkr.co/edit/PlD0eOeXyjIueJb7DHRz?p=preview

red2678 commented 7 years ago

No longer needed.