indrimuska / angular-moment-picker

Angular Moment Picker is an AngularJS directive for date and time picker using Moment.js.
http://indrimuska.github.io/angular-moment-picker/
MIT License
525 stars 226 forks source link

Real time validation does not work on first click when updateOn directive used #200

Open usman45 opened 7 years ago

usman45 commented 7 years ago

The ng-model-options directive can be used to hold the data-binding of the value of an input field until the field loses focus. So providing immediate feedback on date (manually input) validity would not work when using this directive.

Actual Result: Custom validation on input date string does not work immediately. You have to click outside the input field and click back on the field.

Expected result: The input field value should be updated immediately to help show the date validation right away.