alongubkin / angular-datepicker

Angular.js Date/Time Picker
MIT License
291 stars 129 forks source link

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

Open scalavision opened 10 years ago

scalavision commented 10 years ago

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..?

knicklabs commented 10 years ago

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.

stefanmdt commented 10 years ago

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?

mightydes commented 10 years ago

Same problem