Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b0d681d

Browse files
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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 2 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /