Commit 57950e99cc23f4911d6694fa0cee8844df451aff
Exists in
master
Merge branch 'master' into 'master'
Master(efernandez) See merge request !4
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(); |