diff --git a/src/js/uppercaseOnly-directive.js b/src/js/uppercaseOnly-directive.js index d73427f..8f8c3e8 100644 --- a/src/js/uppercaseOnly-directive.js +++ b/src/js/uppercaseOnly-directive.js @@ -24,10 +24,10 @@ angular.module('focaDirectivas') } return value.toUpperCase(); } - if(attrs.type === 'text' && !attrs.readonly && - !attrs.disabled) { + !attrs.disabled && + !attrs.uibDatepickerPopup) { ctrl.$formatters.push(formatter); ctrl.$parsers.push(parser);