-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Inline-Datepicker doesn't add ng-(in)?valid #1688
Comments
+1. it actually works when using inline datepicker, but not with popup on an input element. one can easily reproduce it in the showcase. |
+1 |
11 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
++ |
+1 |
1 similar comment
+1 |
+10 // Just to break the tradition! :D |
+1 |
I'd like to take this moment to thank my fans, my parents, and all of you for this amazing response and outpouring. Never before has one of my issues been so popularly 👍'd before. |
+1 |
@ovaris Unfortunately because I have corporate clients that refuse to update beyond IE8 I had to give up Angular. No sense building a site that could never receive updates to the core framework, especially if those updates are security related... |
@Crisfole so are you saying that Angular UI is NOT going to be Angular 1.3 compatible, at least not in the near future? |
@ovaris see the updated README, we are working on angular 1.3 compatibility |
@ovaris: I'm not part of the team. I have exactly zero say in the |
+1 |
1 similar comment
+1 |
Related work: #3020 Please don't +1, we already know this is a priority. |
What alternative solution exists for this issue?, if i want a datepicker with validation of min and max. Thanks for the response in advance. |
Create a custom directive to do the validation for you, if you really need it.. Until a fix is available. Here is a blogpost describing such a directive. https://rashimuddin.wordpress.com/2014/08/24/date-range-custom-validation-in-angular-js/ |
Please refer to http://stackoverflow.com/questions/24359128/bootstrap-angular-datepicker-set-ng-model-invalid-not-change/31595743#31595743 at my response (Aquiles) |
Hello Guys, How to do start date end date validation using Angular JS for bootstrap datepicker? |
I believe this is fixed currently, as the homepage works as expected. @narangrishab: take a look at the documentation for the datepicker, and read up on how validation in Angular works. Closing as fixed. |
As of September 15th, 2015 the datepicker-popup example at https://angular-ui.github.io/bootstrap/ is not correctly setting the error classes on the input element when a date is manually entered that is before the min-date value. |
Yep, seems broken to me. Invalid not set on the text input. |
@dylaninvodo or @cen1, please open a new issue rather than piling on to an existing and unrelated issue that is already closed. Doing so is a really good way to not get the issue fixed as we will most likely miss it. If you so boldly dare to venture where many have gone before and want to file a new issue, please follow the instructions here. Thanks. |
Oh for pete's sake. Nevermind. I just saw your issue. I'll shut up now. |
As an alternative to include range in date entered, I worked with UI.validate and it worked fine! include dependency => 'ui.validate' validations:
In Controller:
documentation for ui.validate |
The inline datepicker allows typing in an invalid (disabled) date, and doesn't add the ng-invalid class to the datepicker.
It seems that the dropdown itself is modified to include the ng-invalid but not the actual input...Am I misunderstanding something?
The text was updated successfully, but these errors were encountered: