fix(Field): should not reset validation after blured (#8409)

* fix(Field): should not reset validation after blured

* test(Form): add reset validation test case
This commit is contained in:
neverland
2021-03-26 10:55:21 +08:00
committed by GitHub
parent 2cad166226
commit 20bb718ab6
2 changed files with 39 additions and 1 deletions
+3 -1
View File
@@ -238,7 +238,9 @@ export default defineComponent({
return defaultTrigger;
});
validate(rules);
if (rules.length) {
validate(rules);
}
}
};