Merge pull request #830 from DuLinRain/patch-1
fix: validateOnChange=false时,提交后修改内容,表单不校验
This commit is contained in:
commit
499f68638e
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue