alongubkin / alongubkin/angular-datepicker

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

Open
#22 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
290
Forks
126
PR merge metrics
No merged PRs in 30d

Description

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:

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.