Commit bfab5cd9 authored by Hashem Qolami's avatar Hashem Qolami

Form: 🔧 fixed validation issue with dynamic rules (fixed #1317)

parent 75d248e1
......@@ -23,6 +23,11 @@
},
inline: Boolean
},
watch: {
rules() {
this.validate();
}
},
data() {
return {
fields: []
......@@ -54,7 +59,7 @@
if (errors) {
valid = false;
}
if (index === this.fields.length - 1) {
if (typeof callback === 'function' && index === this.fields.length - 1) {
callback(valid);
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment