Skip to content

Commit e2734c8

Browse files
committed
Forgot that $isEmpty takes an argument...
1 parent f83b708 commit e2734c8

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

dist/schema-form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2302,7 +2302,7 @@ angular.module('schemaForm').directive('schemaValidate', ['sfValidator', '$parse
23022302

23032303
// In Angular 1.3 setting undefined as a viewValue does not trigger parsers
23042304
// so we need to do a special required check. Fortunately we have $isEmpty
2305-
if (form.required && ngModel.$isEmpty()) {
2305+
if (form.required && ngModel.$isEmpty(ngModel.$modelValue)) {
23062306
ngModel.$setValidity('tv4-302', false);
23072307
}
23082308

0 commit comments

Comments
 (0)