We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1a18972 + d6d1dd6 commit e13c7a9Copy full SHA for e13c7a9
src/services/decorators.js
@@ -138,8 +138,14 @@ angular.module('schemaForm').provider('schemaFormDecorators',
138
if (!scope.ngModel) {
139
return false;
140
}
141
- return scope.ngModel.$valid &&
142
- (!scope.ngModel.$pristine || !scope.ngModel.$isEmpty(scope.ngModel.$modelValue));
+ if (scope.options && scope.options.pristine &&
+ scope.options.pristine.success === false) {
143
+ return scope.ngModel.$valid &&
144
+ (!scope.ngModel.$pristine && !scope.ngModel.$isEmpty(scope.ngModel.$modelValue));
145
+ } else {
146
147
+ (!scope.ngModel.$pristine || !scope.ngModel.$isEmpty(scope.ngModel.$modelValue));
148
+ }
149
};
150
151
scope.hasError = function() {
0 commit comments