ng-bs-daterangepicker
ng-bs-daterangepicker copied to clipboard
How to set field to be empty by default?
Need field with range to be empty at first. Later on, when one selects something, then dates could appear. Is it possible?
I have the same issue with #jeserkin. I have a form with a daterange picker to be empty at first and validate it when i submit my form. Would you please to support this function?
I don't like to publish my stuff in someone else repo, but seems there hasn't been much progres lately. So I've gathered diff. solutions for daterange picker and tried to create one with all the best features from others + plus something from me. Enough said: https://github.com/jeserkin/nDaterangepicker
@jeserkin Please submit any pull request you want. I am one of the new maintainers of this repo and I will accept the PR if it makes sense.
@alanjames1987 it still have bug,ng-model with range is abnormal at first. it set ng-mode first time and return .the range present nothing,but ng-model has value .
Hi is this issue resolved??... I have implemented this directive in my project and I'm using this to filter search results not being able to intialize to null is giving me problems
@amer4 remark the following code will fix the bug if (!$scope[modelValue] || (!$scope[modelValue].startDate)) { //ngModel.$setViewValue({ // startDate: moment().startOf('day'), // endDate: moment().startOf('day') //}); return; }