fragaria / angular-daterangepicker

Angular.js wrapper for dangrossman/bootstrap-daterangepicker
MIT License
519 stars 372 forks source link

Cannot select today date when there is only min date validation #231

Closed bmickoski closed 5 years ago

bmickoski commented 7 years ago

When there is only min validation for the first time I cannot select today date. If I choose another date first then I can choose today date.

<input date-range-picker id="carRecDate" class="form-control date-picker" type="text" data-ng-model="carvm.eventObj.carReceivedDt" placeholder="mm/dd/yyyy" options="{locale:{format: 'MM/DD/YYYY'}, singleDatePicker:true}" min="carvm.review.reportSentDt" max="carvm.todayDate" />

<input type="text" id="revResDate" class="form-control datepicker" min = "carvm.eventObj.carReceivedDt" placeholder="mm/dd/yyyy" date-range-picker data-ng-model="carvm.eventObj.revisedResponseDt" options="{locale:{format: 'MM/DD/YYYY'}, singleDatePicker:true, drops: 'up'}" required/>

For second datepicker i cannot choose today date for first time. Nothing happens when click on today date. Even watcher for this model in controller is not fired up. If I add for example max="carvm.todayDate()" then I can choose today date for first time.

Any ideas?

ghost commented 7 years ago

did you fix this problem? I'm having the same issue

bmickoski commented 7 years ago

@crysthofferattier no.. still issue for me. I see that lately many issues are raised and none are even discussed .... it is getting bad.

ghost commented 7 years ago

@BukicMicko thanks for answering me

tomergev commented 7 years ago

+1