Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
scalavision opened this issue Sep 14, 2014 · 3 comments
Open

Comments

@scalavision
Copy link

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
Copy link

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
Copy link

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
Copy link

Same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants