diff --git a/src/services/decorators.js b/src/services/decorators.js index 324f284c1..bd012b12f 100644 --- a/src/services/decorators.js +++ b/src/services/decorators.js @@ -250,9 +250,11 @@ angular.module('schemaForm').provider('schemaFormDecorators', scope.ngModel.$setValidity(error, validity === true); - // Setting or removing a validity can change the field to believe its valid - // but its not. So lets trigger its validation as well. - scope.$broadcast('schemaFormValidate'); + if (validity === true) { + // Setting or removing a validity can change the field to believe its valid + // but its not. So lets trigger its validation as well. + scope.$broadcast('schemaFormValidate'); + } } }) }