We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75be503 commit ce6cf7cCopy full SHA for ce6cf7c
src/directives/message.js
@@ -25,10 +25,13 @@ angular.module('schemaForm').directive('sfMessage',
25
(scope.ngModel && scope.ngModel.$error) || {}
26
);
27
28
+ // Since we use $parsers to hook up our validation we also end up with a "parse" error.
29
+ // so we remove it.
30
+ errors = errors.filter(function(e) { return e !== 'parse'; });
31
+
32
// We only show one error.
33
// TODO: Make that optional
34
var error = errors[0];
-
35
if (error) {
36
element.html(sfErrorMessage.interpolate(
37
error,
0 commit comments