Skip to content
This repository has been archived by the owner on Sep 9, 2019. It is now read-only.

Commit

Permalink
Rebuild production version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Grimes committed Aug 26, 2018
1 parent 4e4e7f0 commit 86898c0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
10 changes: 7 additions & 3 deletions dist/js/FormHandler.esm.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -1474,8 +1474,11 @@ function () {
message: options.notice.message || defaultConfig.notices.message,
classNames: Object.assign({}, this.opts.classNames.notices, options.notice.classNames)
};
this.makeField(name, fieldOptions);
this.makeNotice(name, noticeOptions);
this.opts.fields[name] = Object.assign({}, fieldOptions, {
notice: noticeOptions
});
this.makeField(name, this.opts.fields[name]);
this.makeNotice(name, this.opts.fields[name].notice);
return this.fields[name].node;
}
}, {
Expand All @@ -1491,12 +1494,13 @@ function () {
// also turns on toggleClassNames
var name = this.getFieldNameBy(field);

if (field.validation) {
if (this.fields[name].validation) {
var validation = Validator.validate(this.fields[name].validatorOptions);
this.fields[name].submitted = true;
this.setFieldState(name, validation.valid);
}

this.form.setState();
return this.fields[name].node;
}
}, {
Expand Down
10 changes: 7 additions & 3 deletions dist/js/FormHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -1480,8 +1480,11 @@
message: options.notice.message || defaultConfig.notices.message,
classNames: Object.assign({}, this.opts.classNames.notices, options.notice.classNames)
};
this.makeField(name, fieldOptions);
this.makeNotice(name, noticeOptions);
this.opts.fields[name] = Object.assign({}, fieldOptions, {
notice: noticeOptions
});
this.makeField(name, this.opts.fields[name]);
this.makeNotice(name, this.opts.fields[name].notice);
return this.fields[name].node;
}
}, {
Expand All @@ -1497,12 +1500,13 @@
// also turns on toggleClassNames
var name = this.getFieldNameBy(field);

if (field.validation) {
if (this.fields[name].validation) {
var validation = Validator.validate(this.fields[name].validatorOptions);
this.fields[name].submitted = true;
this.setFieldState(name, validation.valid);
}

this.form.setState();
return this.fields[name].node;
}
}, {
Expand Down

0 comments on commit 86898c0

Please sign in to comment.