Merge pull request #830 from DuLinRain/patch-1

fix: validateOnChange=false时,提交后修改内容,表单不校验
This commit is contained in:
RickCole 2020-08-10 19:21:14 +08:00 committed by GitHub
commit 499f68638e
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ export default class FormControl extends React.PureComponent<
(validateOnChange !== false && (form.submited || this.model.validated))
) {
this.lazyValidate();
} else if (validateOnChange === false && !this.model.valid) {
} else if (validateOnChange === false) {
this.model.reset();
}