Commit 6dadcfc6e136a2d999f7281411286a57cec5d924
1 parent
0ee69c7d9d
Exists in
master
correcion error uppercaseOnly en disabled y readonly
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
src/js/uppercaseOnly-directive.js
| ... | ... | @@ -25,7 +25,9 @@ angular.module('focaDirectivas') |
| 25 | 25 | return value.toUpperCase(); |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | - if(attrs.type === 'text') { | |
| 28 | + if(attrs.type === 'text' && | |
| 29 | + !attrs.readonly && | |
| 30 | + !attrs.disabled) { | |
| 29 | 31 | |
| 30 | 32 | ctrl.$formatters.push(formatter); |
| 31 | 33 | ctrl.$parsers.push(parser); |