Today doesn't select
krotsky opened this issue · 1 comments
krotsky commented
If first of all select Today option it doesn't change the data (it changes the view but not the data). If at first select something else for all other changes this point works.
CredibleAshok commented
I think this issue is addressed in Issue#44 by sheth in Sept 2014.
Changing the range to 'Today' the very first time does not trigger a model update #44
following link might help you. #44
This worked for me. Add these lines in gn-bs-daterangepicker.js
options.startDate = $parse($attributes.ngModel)($scope) && $parse($attributes.ngModel)($scope).startDate;
options.endDate = $parse($attributes.ngModel)($scope) && $parse($attributes.ngModel)($scope).endDate;