ng-bs-daterangepicker icon indicating copy to clipboard operation
ng-bs-daterangepicker copied to clipboard

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

Open dimitriosd1983 opened this issue 8 years ago • 1 comments

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

dimitriosd1983 avatar Sep 16 '16 15:09 dimitriosd1983

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

kdomagal avatar Mar 17 '17 15:03 kdomagal