|
1 | 1 | /*! |
2 | 2 | * angular-schema-form |
3 | 3 | * @version 1.0.0-alpha.5 |
4 | | - * @date Sun, 25 Jun 2017 11:12:48 GMT |
| 4 | + * @date Mon, 17 Jul 2017 14:13:21 GMT |
5 | 5 | * @link https://github.com/json-schema-form/angular-schema-form |
6 | 6 | * @license MIT |
7 | 7 | * Copyright (c) 2014-2017 JSON Schema Form |
@@ -87,7 +87,7 @@ module.exports = angular; |
87 | 87 | /* WEBPACK VAR INJECTION */(function(global, setImmediate) {/*! |
88 | 88 | * json-schema-form-core |
89 | 89 | * @version 1.0.0-alpha.5 |
90 | | - * @date Sun, 25 Jun 2017 10:52:17 GMT |
| 90 | + * @date Sat, 24 Jun 2017 14:16:26 GMT |
91 | 91 | * @link https://github.com/json-schema-form/json-schema-form-core |
92 | 92 | * @license MIT |
93 | 93 | * Copyright (c) 2014-2017 JSON Schema Form |
@@ -2912,7 +2912,7 @@ __WEBPACK_IMPORTED_MODULE_1_angular___default.a.module('schemaForm', deps) |
2912 | 2912 | ngModel.$setValidity(k, true); |
2913 | 2913 | }); |
2914 | 2914 |
|
2915 | | - if (!result.valid && (!ngModel.$pristine || triggered)) { |
| 2915 | + if (!result.valid && (!ngModel.$pristine || triggered || scope.options.validateOnRender === true)) { |
2916 | 2916 | // it is invalid, return undefined (no model update) |
2917 | 2917 | ngModel.$setValidity('tv4-' + result.error.code, false); |
2918 | 2918 | error = result.error; |
@@ -3634,7 +3634,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol |
3634 | 3634 | var destroyStrategy = form.destroyStrategy || scope.options && scope.options.destroyStrategy || 'remove'; |
3635 | 3635 | // No key no model, and we might have strategy 'retain' |
3636 | 3636 | if (key && destroyStrategy !== 'retain') { |
3637 | | - |
3638 | 3637 | // Type can also be a list in JSON Schema |
3639 | 3638 | var type = form.schema && form.schema.type || ''; |
3640 | 3639 |
|
|
0 commit comments