Skip to content

Commit 862feee

Browse files
committed
gulped
1 parent 213ebf7 commit 862feee

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

dist/schema-form.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,8 @@ angular.module('schemaForm').provider('schemaForm',
10821082
path: path,
10831083
required: required || false,
10841084
lookup: options.lookup,
1085-
ignore: options.ignore
1085+
ignore: options.ignore,
1086+
global: options.global
10861087
});
10871088
if (def) {
10881089
f.items.push(def);
@@ -2029,10 +2030,13 @@ angular.module('schemaForm').directive('sfMessage',
20292030
(scope.ngModel && scope.ngModel.$error) || {}
20302031
);
20312032

2033+
// Since we use $parsers to hook up our validation we also end up with a "parse" error.
2034+
// so we remove it.
2035+
errors = errors.filter(function(e) { return e !== 'parse'; });
2036+
20322037
// We only show one error.
20332038
// TODO: Make that optional
20342039
var error = errors[0];
2035-
20362040
if (error) {
20372041
element.html(sfErrorMessage.interpolate(
20382042
error,

0 commit comments

Comments
 (0)