Commit d57f67fc66d4e4920928b1572219947b0111ce47
Exists in
master
and in
1 other branch
Merge remote-tracking branch 'upstream/master'
Showing
1 changed file
Show diff stats
src/js/uppercaseOnly-directive.js
... | ... | @@ -7,7 +7,7 @@ angular.module('focaDirectivas') |
7 | 7 | link: function(scope, element, attrs, ctrl) { |
8 | 8 | |
9 | 9 | function parser(value) { |
10 | - if (ctrl.$isEmpty(value)) { | |
10 | + if (ctrl.$isEmpty(value) || angular.isDate(value)) { | |
11 | 11 | return value; |
12 | 12 | } |
13 | 13 | var formatedValue = value.toUpperCase(); |