Skip to content

Commit b0d681d

Browse files
authored
Merge pull request #572 from zoul0813/feature/debounced-validation-field-property
added optional field property `debounceValidateTime` which works at t…
2 parents fa934e8 + 8c1f462 commit b0d681d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/formGenerator.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ export default {
3030
default() {
3131
return {
3232
validateAfterLoad: false,
33-
validateAsync: false,
3433
validateAfterChanged: false,
34+
fieldIdPrefix: "",
35+
validateAsync: false,
3536
validationErrorClass: "error",
3637
validationSuccessClass: ""
3738
};

test/unit/specs/fields/abstractField.spec.js

+2
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ describe("abstractField.vue", () => {
213213

214214
it("should call validate function after value changed", () => {
215215
options.validateAfterChanged = true;
216+
// seems to be an issue with how the field is defined, the update to 'options' isn't carried over to field.formOptions
217+
field.formOptions = options;
216218
field.value = "Jane Roe";
217219

218220
expect(field.validate.callCount).to.be.equal(1);

0 commit comments

Comments
 (0)