Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-sanders committed May 3, 2017
1 parent 3d255a0 commit 0a18b45
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions dist/vue-formly.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* vue-formly v2.3.1
* vue-formly v2.3.2
* https://github.com/matt-sanders/vue-formly
* Released under the MIT License.
*/
Expand Down Expand Up @@ -760,7 +760,10 @@ return /******/ (function(modules) { // webpackBootstrap

(0, _keys2.default)(this.field.validators).forEach(function (validKey) {
if (!_this.form.$errors[_this.field.key][validKey]) _this.$set(_this.form.$errors[_this.field.key], validKey, false);
if (!_this.field.required && !_this.model[_this.field.key]) return;
if (!_this.field.required && !_this.model[_this.field.key]) {
(0, _util.setError)(_this.form, _this.field.key, validKey, false);
return;
}

var validator = _this.field.validators[validKey];
var validatorMessage = false;
Expand Down
Loading

0 comments on commit 0a18b45

Please sign in to comment.