Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 7964663

Browse files
committed
fix(datepicker): alternate input formats: setViewValue on parse
1 parent c0f1027 commit 7964663

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/datepicker/datepicker.js

+1
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,7 @@ function(scope, element, attrs, $compile, $parse, $document, $rootScope, $positi
817817
for (var i = 0; i < altInputFormats.length; i++) {
818818
date = dateParser.parse(viewValue, altInputFormats[i], scope.date);
819819
if (!isNaN(date)) {
820+
ngModel.$setViewValue(date);
820821
break;
821822
}
822823
}

0 commit comments

Comments
 (0)