Skip to content

Commit 1266b4b

Browse files
author
Kevin
committed
Only validate when validateOffFocus is true
1 parent d903eaa commit 1266b4b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/formGenerator.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ export default {
131131
132132
methods: {
133133
onBlur(value, model) {
134-
this.validateModelField(model)
134+
if(objGet(this.options, "validateOffFocus", false)) {
135+
this.validateModelField(model)
136+
}
135137
},
136138
137139
// Get visible prop of field/group

0 commit comments

Comments
 (0)