Skip to content

Commit 3da2814

Browse files
committed
BugFix ngChange
before we have a problem with the ngChange, the model does not change in the same time when the trigger callback, now it's ok.
1 parent 11b7d32 commit 3da2814

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/scripts/datePicker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Module.directive('datePicker', ['datePickerConfig', 'datePickerUtils', function
7676
scope.model = new Date(scope.model || date);
7777
//if ngModel , setViewValue and trigger ng-change, etc...
7878
if(ngModel)
79-
ngModel.$setViewValue(scope.model);
79+
ngModel.$setViewValue(scope.date);
8080

8181
var view = partial ? 'minutes' : scope.view;
8282
//noinspection FallThroughInSwitchStatementJS

0 commit comments

Comments
 (0)