Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

Today doesn't select #130

Open
krotsky opened this issue Apr 11, 2017 · 1 comment
Open

Today doesn't select #130

krotsky opened this issue Apr 11, 2017 · 1 comment

Comments

@krotsky
Copy link

krotsky commented Apr 11, 2017

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
Copy link

CredibleAshok commented May 26, 2017

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;

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants