alongubkin / alongubkin/angular-datepicker

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

未关闭
#22 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
290
派生
126
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。