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

Commit

Permalink
fix(datepicker): alternate input formats: setViewValue on parse
Browse files Browse the repository at this point in the history
  • Loading branch information
davious committed Dec 4, 2015
1 parent c0f1027 commit 7964663
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/datepicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,7 @@ function(scope, element, attrs, $compile, $parse, $document, $rootScope, $positi
for (var i = 0; i < altInputFormats.length; i++) {
date = dateParser.parse(viewValue, altInputFormats[i], scope.date);
if (!isNaN(date)) {
ngModel.$setViewValue(date);
break;
}
}
Expand Down

0 comments on commit 7964663

Please sign in to comment.