Commit 941cef528a0aaa58878c435931c85027acadaa4e
1 parent
bc7cb9cec9
Exists in
master
and in
1 other branch
fix directiva
Showing
1 changed file
with
1 additions
and
1 deletions
 
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(); |