fragaria / angular-daterangepicker

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

Throws error when the model value is null #205

Closed AmitMY closed 5 years ago

AmitMY commented 8 years ago

TypeError: Cannot read property 'startDate' of null at Array. at ngModelWatch at Scope.$digest

Here are the lines:

  } else if (objValue.startDate) {
            return [f(objValue.startDate), f(objValue.endDate)].join(opts.locale.separator);

First line throws the error

sunilkushwaha0101 commented 8 years ago

+1 am also getting this issue. anyone with the fix ?

jdhrivas commented 8 years ago

any updates on this issue?

bmickoski commented 7 years ago

There are already issues raised for this problem.. I see that there is PR that will fix this:

https://github.com/fragaria/angular-daterangepicker/pull/136

but I don't know why it is not merged...