Skip to content

Commit

Permalink
formatter added to $formatters instead of replacing, in order to wo…
Browse files Browse the repository at this point in the history
…rk with `required` #3
  • Loading branch information
g00fy- committed Jun 20, 2013
1 parent fd8134d commit bad4a29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@
return dateFilter(value, format);
}

ngModel.$formatters = [formatter];
ngModel.$formatters.push(formatter);

var picker = null;
var clear = angular.noop;
Expand Down
Loading

0 comments on commit bad4a29

Please sign in to comment.