angular-datepicker icon indicating copy to clipboard operation
angular-datepicker copied to clipboard

DatePicker window freezes when $scope.date is set in controller

Open scalavision opened this issue 11 years ago • 3 comments

Hi,

Thanks for such a great DatePicker !!!!!

It seems I have problems getting it to work when presetting the date...

Defining the directive like this: <input type='text' pick-a-date='date' pick-a-date-options='datePickerOptions''/>

In the controller I have tried the following: $scope.date = new Date();

And with an option: $scope.date = {}; $scope.datePickerOptions = { onRender: function(e) { $scope.date = new Date(); } };

In both cases the date picker freezes if I try to change the date after the page has loaded...

If I don't define $scope.date at all, it works fine...

Am I doing something wrong or is there a bug..?

scalavision avatar Sep 14 '14 19:09 scalavision

I am having the same issue. If date is set, I can open the date or time window, but I cannot select a new date or time, clear the date or date, or dismiss the date/time window.

knicklabs avatar Sep 17 '14 02:09 knicklabs

for me the controls are not working at all. in any case the picker is "read only" like reported in this thread: http://forum.ionicframework.com/t/angular-datepicker-pickadate-js-port-to-angular-no-jquery-dependency/2117 are there any news on that issue?

stefanmdt avatar Sep 17 '14 08:09 stefanmdt

Same problem

mightydes avatar Nov 18 '14 08:11 mightydes