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

When selecting date I get in my input element text [object Object] instead of the actual date range #124

Open
dimitriosd1983 opened this issue Sep 16, 2016 · 1 comment

Comments

@dimitriosd1983
Copy link

dimitriosd1983 commented Sep 16, 2016

I believe issue is in line 109 of the file:
ngModel.$render();

If I replace that with the content of ngModel.$render = function()

if (!ngModel.$viewValue || !ngModel.$viewValue.startDate) {
return;
}
$element.val(formatted(ngModel.$viewValue));

then it works fine

daterangepicker-issue

@kdomagal
Copy link

see the pull requests, there is a fix you could apply locally. Unfortunately this projects doesn't look to be maintained anymore..

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